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(
|
||||
"id" serial primary key not null,
|
||||
"region_name" varchar,
|
||||
"region_name" varchar not null,
|
||||
"created_at" timestamp default(now()),
|
||||
"updated_at" timestamp default(now())
|
||||
);
|
||||
|
||||
CREATE TABLE provinces(
|
||||
"id" serial primary key not null,
|
||||
"province_name" varchar,
|
||||
"province_name" varchar not null,
|
||||
"region_id" smallint references "regions"("id") not null,
|
||||
"created_at" timestamp default(now()),
|
||||
"updated_at" timestamp default(now())
|
||||
@ -68,12 +68,12 @@ CREATE TABLE provinces(
|
||||
|
||||
CREATE TABLE regencies(
|
||||
"id" serial primary key not null,
|
||||
"regency_name" varchar,
|
||||
"regency_name" varchar not null,
|
||||
"province_id" smallint references "provinces"("id") not null,
|
||||
"created_at" timestamp default(now()),
|
||||
"updated_at" timestamp default(now())
|
||||
);
|
||||
|
||||
|
||||
CREATE TYPE location_type AS ENUM(
|
||||
'beach',
|
||||
'amusement park',
|
||||
|
Loading…
Reference in New Issue
Block a user