From 3740d28339646650f0c9392147a78295cf1e7d59 Mon Sep 17 00:00:00 2001 From: p0ny Date: Wed, 5 Nov 2025 14:41:16 +0800 Subject: [PATCH] chore: add created_at to department --- schema/schema.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/schema/schema.sql b/schema/schema.sql index 6aba111..cc6e61e 100644 --- a/schema/schema.sql +++ b/schema/schema.sql @@ -18,6 +18,7 @@ CREATE INDEX "idx_audit_username" ON ONLY "public"."audit" (user_name); CREATE TABLE "public"."department" ( "dept_no" text NOT NULL, "dept_name" text NOT NULL, + created_at timestamptz DEFAULT now(), CONSTRAINT "department_pkey" PRIMARY KEY (dept_no), CONSTRAINT "department_dept_name_key" UNIQUE (dept_name) );