Update migrations
This commit is contained in:
@ -4,7 +4,8 @@ CREATE TABLE cities
|
|||||||
name varchar(50) NOT NULL,
|
name varchar(50) NOT NULL,
|
||||||
postal_code varchar(10),
|
postal_code varchar(10),
|
||||||
created_at timestamp WITH TIME ZONE DEFAULT NOW() NOT NULL,
|
created_at timestamp WITH TIME ZONE DEFAULT NOW() NOT NULL,
|
||||||
modified_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 cities_id_uindex
|
CREATE UNIQUE INDEX cities_id_uindex
|
||||||
@ -19,8 +20,10 @@ CREATE TABLE users
|
|||||||
CONSTRAINT users_cities_id_fk
|
CONSTRAINT users_cities_id_fk
|
||||||
REFERENCES cities (),
|
REFERENCES cities (),
|
||||||
created_at timestamp WITH TIME ZONE DEFAULT NOW() NOT NULL,
|
created_at timestamp WITH TIME ZONE DEFAULT NOW() NOT NULL,
|
||||||
modified_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 users_id_uindex
|
CREATE UNIQUE INDEX users_id_uindex
|
||||||
ON users (id);
|
ON users (id);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user