You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
882 B
23 lines
882 B
|
|
-- ----------------------------
|
|
-- Table structure for road_maintenance_cost
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS "public"."road_maintenance_cost";
|
|
CREATE TABLE "public"."road_maintenance_cost" (
|
|
"id" serial NOT NULL,
|
|
"mId" int4,
|
|
"county_name" varchar(15) COLLATE "pg_catalog"."default",
|
|
"road_length_county" float8,
|
|
"road_cost_county" numeric(10,2),
|
|
"road_length_village" float8,
|
|
"road_cost_village" numeric(10,2),
|
|
"road_length_township" float8,
|
|
"road_cost_township" numeric(10,2),
|
|
"maintenance_date" timestamptz(6)
|
|
)
|
|
;
|
|
|
|
-- ----------------------------
|
|
-- Foreign Keys structure for table road_maintenance_cost
|
|
-- ----------------------------
|
|
ALTER TABLE "public"."road_maintenance_cost" ADD CONSTRAINT "road_maintenance_cost_mId_fkey" FOREIGN KEY ("mId") REFERENCES "public"."road_maintenance" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
|
|
|