Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/developer_readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ bun install --frozen-lockfile

## 開発

```bash
# データベースを作成するには、packages/server に移動してから以下のコマンドを実行してください。
bunx drizzle-kit push
```

```bash
# 開発モードを実行するには、以下のコマンドを実行してください。
Expand Down
24 changes: 12 additions & 12 deletions packages/server/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
),
});