Buckets:
| import { index, mysqlEnum, mysqlTable, primaryKey, uniqueIndex, varchar } from "drizzle-orm/mysql-core" | |
| import { id, timestamps, ulid } from "../drizzle/types" | |
| export const AuthProvider = ["email", "github", "google"] as const | |
| export const AuthTable = mysqlTable( | |
| "auth", | |
| { | |
| id: id(), | |
| ...timestamps, | |
| provider: mysqlEnum("provider", AuthProvider).notNull(), | |
| subject: varchar("subject", { length: 255 }).notNull(), | |
| accountID: ulid("account_id").notNull(), | |
| }, | |
| (table) => [ | |
| primaryKey({ columns: [table.id] }), | |
| uniqueIndex("provider").on(table.provider, table.subject), | |
| index("account_id").on(table.accountID), | |
| ], | |
| ) | |
Xet Storage Details
- Size:
- 655 Bytes
- Xet hash:
- 0f6424f0e79a636286222b1f2b06dd9a4225f517795e87492aa1b30ad113ab40
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.