feat: setup board page

This commit is contained in:
Henry
2023-10-30 18:42:28 +00:00
parent 6fb43dc25c
commit f615198c0c
6 changed files with 75 additions and 19 deletions

View File

@@ -17,12 +17,12 @@ import { type AdapterAccount } from "next-auth/adapters";
*
* @see https://orm.drizzle.team/docs/goodies#multi-project-schema
*/
export const mysqlTable = mysqlTableCreator((name) => `kan_${name}`);
export const mysqlTable = mysqlTableCreator((name) => `kan.${name}`);
export const boards = mysqlTable(
"board",
{
id: bigint("id", { mode: "number" }).primaryKey().autoincrement(),
id: varchar("id", { length: 12 }).notNull().primaryKey(),
name: varchar("name", { length: 255 }),
createdBy: varchar("createdBy", { length: 255 }).notNull(),
createdAt: timestamp("created_at")