export const sqlUserSlugBinding = sqliteTable(
"UserSlugBindings",
{
userId: text().notNull(), // max bindings per userId
userSlug: text().notNull(),
created: text().notNull(),
},
(table) => [
primaryKey({ columns: [table.userSlug, table.userId] }),
uniqueIndex("UserSlug_idx").on(table.userSlug),
],
);
export const sqlUserSlugBinding = sqliteTable(
"UserSlugBindings",
{
userId: text().notNull(), // max bindings per userId
userSlug: text().notNull(),
created: text().notNull(),
},
(table) => [
primaryKey({ columns: [table.userSlug, table.userId] }),
uniqueIndex("UserSlug_idx").on(table.userSlug),
],
);