wip: zen
This commit is contained in:
parent
c87480cf93
commit
4ceabdffa0
156 changed files with 443 additions and 445 deletions
12
packages/console/core/src/schema/account.sql.ts
Normal file
12
packages/console/core/src/schema/account.sql.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { mysqlTable, uniqueIndex, varchar } from "drizzle-orm/mysql-core"
|
||||
import { id, timestamps } from "../drizzle/types"
|
||||
|
||||
export const AccountTable = mysqlTable(
|
||||
"account",
|
||||
{
|
||||
id: id(),
|
||||
...timestamps,
|
||||
email: varchar("email", { length: 255 }).notNull(),
|
||||
},
|
||||
(table) => [uniqueIndex("email").on(table.email)],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue