feat: optimisic updates

This commit is contained in:
Henry
2023-11-14 21:08:13 +00:00
parent decfe2dd98
commit 9660a60276
8 changed files with 181 additions and 33 deletions

View File

@@ -25,7 +25,7 @@ export const boards = mySqlTable(
{
id: bigint("id", { mode: "number" }).primaryKey().autoincrement(),
publicId: varchar("publicId", { length: 12 }).notNull().unique(),
name: varchar("name", { length: 255 }),
name: varchar("name", { length: 255 }).notNull(),
createdBy: varchar("createdBy", { length: 255 }).notNull(),
createdAt: timestamp("createdAt")
.default(sql`CURRENT_TIMESTAMP`)