This commit is contained in:
Frank
2025-09-28 19:55:38 -04:00
parent e3a7096e44
commit 918739057d
20 changed files with 1093 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ export const UserTable = mysqlTable(
timeSeen: utc("time_seen"),
timeJoined: utc("time_joined"),
color: int("color"),
role: mysqlEnum("role", ["admin", "member"]),
role: mysqlEnum("role", ["admin", "member"]).notNull(),
},
(table) => [...workspaceIndexes(table), uniqueIndex("user_email").on(table.workspaceID, table.email)],
)