feat (crud): add installation, unit

This commit is contained in:
dpurbosakti
2025-08-20 13:40:25 +07:00
parent 14cba14822
commit 4c25bdf8db
23 changed files with 1595 additions and 8 deletions
@@ -0,0 +1,12 @@
-- Create "Unit" table
CREATE TABLE "public"."Unit" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Installation_Id" integer NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Unit_Installation" FOREIGN KEY ("Installation_Id") REFERENCES "public"."Installation" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);