init commit
This commit is contained in:
commit
2346fe4879
45 changed files with 2573 additions and 0 deletions
15
prisma/migrations/20250207113919_init/migration.sql
Normal file
15
prisma/migrations/20250207113919_init/migration.sql
Normal file
|
@ -0,0 +1,15 @@
|
|||
-- CreateTable
|
||||
CREATE TABLE "users" (
|
||||
"id" VARCHAR(36) NOT NULL,
|
||||
"email" VARCHAR(320) NOT NULL,
|
||||
"username" VARCHAR(30) NOT NULL,
|
||||
"password" TEXT NOT NULL,
|
||||
"token_id" VARCHAR(64) NOT NULL,
|
||||
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updated_at" TIMESTAMP(3) NOT NULL,
|
||||
|
||||
CONSTRAINT "users_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "users_email_key" ON "users"("email");
|
3
prisma/migrations/migration_lock.toml
Normal file
3
prisma/migrations/migration_lock.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Please do not edit this file manually
|
||||
# It should be added in your version-control system (e.g., Git)
|
||||
provider = "postgresql"
|
Loading…
Add table
Add a link
Reference in a new issue