Skip to content

Commit 94b9a6c

Browse files
committed
fix schema and readme
1 parent 5e3d30f commit 94b9a6c

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

docs/developer_readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ bun install --frozen-lockfile
99

1010
## 開発
1111

12+
```bash
13+
# データベースを作成するには、packages/server で以下のコマンドを実行してください。
14+
bunx drizzle-kit push
15+
```
1216

1317
```bash
1418
# 開発モードを実行するには、以下のコマンドを実行してください。

packages/server/db/schema.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ export const account = sqliteTable("accounts", {
5252
updatedAt: integer("updated_at", { mode: "timestamp" }).notNull(),
5353
});
5454

55-
// export const verification = sqliteTable("verifications", {
56-
// id: text("id").primaryKey(),
57-
// identifier: text("identifier").notNull(),
58-
// value: text("value").notNull(),
59-
// expiresAt: integer("expires_at", { mode: "timestamp" }).notNull(),
60-
// createdAt: integer("created_at", { mode: "timestamp" }).$defaultFn(
61-
// () => /* @__PURE__ */ new Date(),
62-
// ),
63-
// updatedAt: integer("updated_at", { mode: "timestamp" }).$defaultFn(
64-
// () => /* @__PURE__ */ new Date(),
65-
// ),
66-
// });
55+
export const verification = sqliteTable("verifications", {
56+
id: text("id").primaryKey(),
57+
identifier: text("identifier").notNull(),
58+
value: text("value").notNull(),
59+
expiresAt: integer("expires_at", { mode: "timestamp" }).notNull(),
60+
createdAt: integer("created_at", { mode: "timestamp" }).$defaultFn(
61+
() => /* @__PURE__ */ new Date(),
62+
),
63+
updatedAt: integer("updated_at", { mode: "timestamp" }).$defaultFn(
64+
() => /* @__PURE__ */ new Date(),
65+
),
66+
});

0 commit comments

Comments
 (0)