feat: add drizzle-orm and drizzle-kit dependencies to enhance database interactions

This commit is contained in:
2025-12-07 11:05:00 +00:00
parent 27d14ac112
commit 08aefd7cbe
4 changed files with 221 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
CREATE TABLE "users" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"email" varchar(255) NOT NULL,
"name" varchar(255) NOT NULL,
"password_hash" varchar(255) NOT NULL,
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
CONSTRAINT "users_email_unique" UNIQUE("email")
);
CREATE TABLE "events" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"title" varchar(255) NOT NULL,
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
"video_url" varchar(255) NOT NULL,
CONSTRAINT "events_url_unique" UNIQUE("url")
)