2023-05-03 16:59:54 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS "project" (
|
|
|
|
id UUID PRIMARY KEY,
|
|
|
|
title VARCHAR,
|
|
|
|
description TEXT NOT NULL,
|
|
|
|
realtor_id UUID NOT NULL,
|
|
|
|
media TEXT NOT NULL,
|
2023-05-03 17:35:33 +00:00
|
|
|
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,
|
2023-05-03 17:36:55 +00:00
|
|
|
floors SMALLINT NOT NULL,
|
|
|
|
finish_date DATE NOT NULL,
|
2023-05-03 17:35:33 +00:00
|
|
|
order_index INTEGER NOT NULL,
|
2023-05-03 16:59:54 +00:00
|
|
|
time_created TIMESTAMPTZ NOT NULL,
|
|
|
|
last_updated TIMESTAMPTZ NOT NULL
|
|
|
|
);
|