ended3월 15일· 1 sources
How We Let Users Register with Just a Phone Number on a NOT NULL Email Column
NOT NULL 이메일 컬럼에서 전화번호만으로 회원가입을 허용한 방법
Why it matters
When integrating a shop frontend with an ERP system sharing a user table with a NOT NULL + UNIQUE email column, the team needed to allow phone-only registration for wholesale buyers. Instead of migrating the database schema to make email nullable, they generated placeholder emails (shop_{phone}@shop.local) on the backend when no email was provided, satisfying the constraint while keeping registration simple.
1
Sources
+0
24h
—
Growth
190d
Active
NOT NULLplaceholder emailERPphone registrationNode.jsReact