wip: zen
This commit is contained in:
parent
ca9b13e8a2
commit
1947580b08
14 changed files with 1096 additions and 147 deletions
|
|
@ -1,12 +1,7 @@
|
|||
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)],
|
||||
)
|
||||
export const AccountTable = mysqlTable("account", {
|
||||
id: id(),
|
||||
...timestamps,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue