update location data type not null
This commit is contained in:
parent
198e311407
commit
ddca119e45
@ -53,14 +53,14 @@ CREATE TABLE user_reports(
|
|||||||
|
|
||||||
CREATE TABLE regions(
|
CREATE TABLE regions(
|
||||||
"id" serial primary key not null,
|
"id" serial primary key not null,
|
||||||
"region_name" varchar,
|
"region_name" varchar not null,
|
||||||
"created_at" timestamp default(now()),
|
"created_at" timestamp default(now()),
|
||||||
"updated_at" timestamp default(now())
|
"updated_at" timestamp default(now())
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE provinces(
|
CREATE TABLE provinces(
|
||||||
"id" serial primary key not null,
|
"id" serial primary key not null,
|
||||||
"province_name" varchar,
|
"province_name" varchar not null,
|
||||||
"region_id" smallint references "regions"("id") not null,
|
"region_id" smallint references "regions"("id") not null,
|
||||||
"created_at" timestamp default(now()),
|
"created_at" timestamp default(now()),
|
||||||
"updated_at" timestamp default(now())
|
"updated_at" timestamp default(now())
|
||||||
@ -68,7 +68,7 @@ CREATE TABLE provinces(
|
|||||||
|
|
||||||
CREATE TABLE regencies(
|
CREATE TABLE regencies(
|
||||||
"id" serial primary key not null,
|
"id" serial primary key not null,
|
||||||
"regency_name" varchar,
|
"regency_name" varchar not null,
|
||||||
"province_id" smallint references "provinces"("id") not null,
|
"province_id" smallint references "provinces"("id") not null,
|
||||||
"created_at" timestamp default(now()),
|
"created_at" timestamp default(now()),
|
||||||
"updated_at" timestamp default(now())
|
"updated_at" timestamp default(now())
|
||||||
|
Loading…
Reference in New Issue
Block a user