Updated all migrations
This commit is contained in:
parent
b22ad29411
commit
71dde006ed
|
@ -2,11 +2,11 @@ CREATE TABLE IF NOT EXISTS "realtor" (
|
||||||
id UUID PRIMARY KEY,
|
id UUID PRIMARY KEY,
|
||||||
name VARCHAR NOT NULL,
|
name VARCHAR NOT NULL,
|
||||||
bio VARCHAR NOT NULL,
|
bio VARCHAR NOT NULL,
|
||||||
phone_number VARCHAR,
|
phone_number VARCHAR NOT NULL,
|
||||||
email VARCHAR NOT NULL,
|
email VARCHAR,
|
||||||
profile_picture_url VARCHAR NOT NULL,
|
profile_picture_url VARCHAR NOT NULL,
|
||||||
show_projects boolean NOT NULL,
|
show_projects boolean NOT NULL,
|
||||||
shortcode VARCHAR,
|
shortcode VARCHAR NOT NULL,
|
||||||
remax_agent_id INT,
|
remax_agent_id INT,
|
||||||
time_created TIMESTAMPTZ NOT NULL,
|
time_created TIMESTAMPTZ NOT NULL,
|
||||||
last_updated TIMESTAMPTZ NOT NULL
|
last_updated TIMESTAMPTZ NOT NULL
|
||||||
|
|
|
@ -3,6 +3,16 @@ CREATE TABLE IF NOT EXISTS "property" (
|
||||||
project_id UUID,
|
project_id UUID,
|
||||||
realtor_id UUID NOT NULL,
|
realtor_id UUID NOT NULL,
|
||||||
media TEXT NOT NULL,
|
media TEXT NOT NULL,
|
||||||
|
property_type VARCHAR NOT NULL,
|
||||||
|
property_sale_type VARCHAR NOT NULL,
|
||||||
|
country VARCHAR,
|
||||||
|
city VARCHAR,
|
||||||
|
district VARCHAR,
|
||||||
|
price_usd FLOAT8 NOT NULL,
|
||||||
|
rooms SMALLINT NOT NULL,
|
||||||
|
bathrooms FLOAT4 NOT NULL,
|
||||||
|
area FLOAT4 NOT NULL,
|
||||||
|
admin_tag VARCHAR,
|
||||||
time_created TIMESTAMPTZ NOT NULL,
|
time_created TIMESTAMPTZ NOT NULL,
|
||||||
last_updated TIMESTAMPTZ NOT NULL
|
last_updated TIMESTAMPTZ NOT NULL
|
||||||
);
|
);
|
|
@ -4,7 +4,16 @@ CREATE TABLE IF NOT EXISTS "project" (
|
||||||
description TEXT NOT NULL,
|
description TEXT NOT NULL,
|
||||||
realtor_id UUID NOT NULL,
|
realtor_id UUID NOT NULL,
|
||||||
media TEXT NOT NULL,
|
media TEXT NOT NULL,
|
||||||
order_index INTEGER,
|
project_condition VARCHAR NOT NULL,
|
||||||
|
project_type VARCHAR NOT NULL,
|
||||||
|
project_state VARCHAR NOT NULL,
|
||||||
|
country VARCHAR NOT NULL,
|
||||||
|
city VARCHAR NOT NULL,
|
||||||
|
district VARCHAR NOT NULL,
|
||||||
|
admin_tag VARCHAR,
|
||||||
|
floors SMALLINT,
|
||||||
|
finish_date TIMESTAMP,
|
||||||
|
order_index INTEGER NOT NULL,
|
||||||
time_created TIMESTAMPTZ NOT NULL,
|
time_created TIMESTAMPTZ NOT NULL,
|
||||||
last_updated TIMESTAMPTZ NOT NULL
|
last_updated TIMESTAMPTZ NOT NULL
|
||||||
);
|
);
|
|
@ -0,0 +1 @@
|
||||||
|
pub mod main_router;
|
Loading…
Reference in New Issue