diff options
Diffstat (limited to 'db/schema/users.ts')
| -rw-r--r-- | db/schema/users.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/schema/users.ts b/db/schema/users.ts index 5ea399b4..0d727bb4 100644 --- a/db/schema/users.ts +++ b/db/schema/users.ts @@ -49,6 +49,16 @@ export const users = pgTable("users", { deactivatedAt: timestamp("deactivated_at", { withTimezone: true }), deactivationReason: varchar("deactivation_reason", { length: 50 }), // 'INACTIVE', 'ADMIN', 'GDPR' 등 + // ✨ 새로 추가: 동의 관련 필드들 + lastConsentUpdate: timestamp("last_consent_update", { withTimezone: true }), + consentVersion: varchar("consent_version", { length: 20 }), // 마지막 동의한 정책 버전 + requiresConsentUpdate: boolean("requires_consent_update").default(false).notNull(), + + // ✨ 새로 추가: 회원가입 관련 + // emailVerified: boolean("email_verified").default(false).notNull(), + // emailVerifiedAt: timestamp("email_verified_at", { withTimezone: true }), + // registrationCompleted: boolean("registration_completed").default(false).notNull(), + }, (table) => { return { emailIdx: uniqueIndex("users_email_idx").on(table.email), |
