From c894631c6496c7709665a9b92d20012fb97c51b5 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Wed, 1 Apr 2026 19:54:49 +0800 Subject: [PATCH] =?UTF-8?q?chore(db):=20=E6=8F=90=E4=BA=A4=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E6=95=B0=E6=8D=AE=E5=BA=93=E8=BF=81=E7=A7=BB=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migration.sql | 7 ++ .../snapshot.json | 92 +++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 drizzle/20260401114858_cultured_lady_mastermind/migration.sql create mode 100644 drizzle/20260401114858_cultured_lady_mastermind/snapshot.json diff --git a/drizzle/20260401114858_cultured_lady_mastermind/migration.sql b/drizzle/20260401114858_cultured_lady_mastermind/migration.sql new file mode 100644 index 0000000..d2f00ae --- /dev/null +++ b/drizzle/20260401114858_cultured_lady_mastermind/migration.sql @@ -0,0 +1,7 @@ +CREATE TABLE "todo" ( + "id" uuid PRIMARY KEY, + "created_at" timestamp with time zone DEFAULT now() NOT NULL, + "updated_at" timestamp with time zone DEFAULT now() NOT NULL, + "title" text NOT NULL, + "completed" boolean DEFAULT false NOT NULL +); diff --git a/drizzle/20260401114858_cultured_lady_mastermind/snapshot.json b/drizzle/20260401114858_cultured_lady_mastermind/snapshot.json new file mode 100644 index 0000000..e8663ab --- /dev/null +++ b/drizzle/20260401114858_cultured_lady_mastermind/snapshot.json @@ -0,0 +1,92 @@ +{ + "version": "8", + "dialect": "postgres", + "id": "91ea16cc-3353-493c-bc2c-4fc9dea2fce7", + "prevIds": [ + "00000000-0000-0000-0000-000000000000" + ], + "ddl": [ + { + "isRlsEnabled": false, + "name": "todo", + "entityType": "tables", + "schema": "public" + }, + { + "type": "uuid", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "todo" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "todo" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "todo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "todo" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "completed", + "entityType": "columns", + "schema": "public", + "table": "todo" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "todo_pkey", + "schema": "public", + "table": "todo", + "entityType": "pks" + } + ], + "renames": [] +} \ No newline at end of file