Migrations
This commit is contained in:
12
migrations/V0001__create_cities.sql
Normal file
12
migrations/V0001__create_cities.sql
Normal file
@ -0,0 +1,12 @@
|
||||
CREATE TABLE IF NOT EXISTS cities
|
||||
(
|
||||
id uuid DEFAULT gen_random_uuid() NOT NULL,
|
||||
name varchar(50) NOT NULL,
|
||||
postal_code varchar(10),
|
||||
created_at timestamp WITH TIME ZONE DEFAULT NOW() NOT NULL,
|
||||
updated_at timestamp WITH TIME ZONE DEFAULT NOW() NOT NULL,
|
||||
sa_orm_sentinel uuid
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS cities_id_uindex
|
||||
ON cities (id);
|
||||
Reference in New Issue
Block a user