diff --git a/docs/developer_readme.md b/docs/developer_readme.md index 10f1b7d..34bb0ec 100644 --- a/docs/developer_readme.md +++ b/docs/developer_readme.md @@ -9,6 +9,10 @@ bun install --frozen-lockfile ## 開発 +```bash +# データベースを作成するには、packages/server に移動してから以下のコマンドを実行してください。 +bunx drizzle-kit push +``` ```bash # 開発モードを実行するには、以下のコマンドを実行してください。 diff --git a/packages/server/db/schema.ts b/packages/server/db/schema.ts index bb93384..4c1e2d1 100644 --- a/packages/server/db/schema.ts +++ b/packages/server/db/schema.ts @@ -52,15 +52,15 @@ export const account = sqliteTable("accounts", { updatedAt: integer("updated_at", { mode: "timestamp" }).notNull(), }); -// export const verification = sqliteTable("verifications", { -// id: text("id").primaryKey(), -// identifier: text("identifier").notNull(), -// value: text("value").notNull(), -// expiresAt: integer("expires_at", { mode: "timestamp" }).notNull(), -// createdAt: integer("created_at", { mode: "timestamp" }).$defaultFn( -// () => /* @__PURE__ */ new Date(), -// ), -// updatedAt: integer("updated_at", { mode: "timestamp" }).$defaultFn( -// () => /* @__PURE__ */ new Date(), -// ), -// }); +export const verification = sqliteTable("verifications", { + id: text("id").primaryKey(), + identifier: text("identifier").notNull(), + value: text("value").notNull(), + expiresAt: integer("expires_at", { mode: "timestamp" }).notNull(), + createdAt: integer("created_at", { mode: "timestamp" }).$defaultFn( + () => /* @__PURE__ */ new Date(), + ), + updatedAt: integer("updated_at", { mode: "timestamp" }).$defaultFn( + () => /* @__PURE__ */ new Date(), + ), +});