aboutsummaryrefslogtreecommitdiffstats
path: root/backend/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'backend/migrations')
-rw-r--r--backend/migrations/20250616212004_init/migration.sql9
-rw-r--r--backend/migrations/migration_lock.toml3
2 files changed, 12 insertions, 0 deletions
diff --git a/backend/migrations/20250616212004_init/migration.sql b/backend/migrations/20250616212004_init/migration.sql
new file mode 100644
index 0000000..edeec02
--- /dev/null
+++ b/backend/migrations/20250616212004_init/migration.sql
@@ -0,0 +1,9 @@
+-- CreateTable
+CREATE TABLE "User" (
+ "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ "name" TEXT NOT NULL,
+ "email" TEXT NOT NULL
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
diff --git a/backend/migrations/migration_lock.toml b/backend/migrations/migration_lock.toml
new file mode 100644
index 0000000..2a5a444
--- /dev/null
+++ b/backend/migrations/migration_lock.toml
@@ -0,0 +1,3 @@
+# Please do not edit this file manually
+# It should be added in your version-control system (e.g., Git)
+provider = "sqlite"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage