18 lines
493 B
SQL
18 lines
493 B
SQL
CREATE TABLE "events" (
|
|
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
"title" text NOT NULL,
|
|
"emoji" text NOT NULL,
|
|
"month" integer NOT NULL,
|
|
"day" integer NOT NULL,
|
|
"start_year" integer,
|
|
"end_month" integer,
|
|
"end_day" integer,
|
|
"end_year" integer,
|
|
"description" text,
|
|
"color" text,
|
|
"is_active" boolean DEFAULT true NOT NULL,
|
|
"tags" text[],
|
|
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
);
|