schema update

This commit is contained in:
Yash 2024-04-11 06:41:58 +00:00
parent 9b922304cf
commit f9c34b7eeb

View file

@ -121,7 +121,7 @@ export const space = createTable(
"space",
{
id: integer("id").notNull().primaryKey({ autoIncrement: true }),
name: text("name").notNull().default("all"),
name: text("name").notNull().unique().default("none"),
user: text("user", { length: 255 }).references(() => users.id),
},
(space) => ({