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,
|
|
|
|
floors SMALLINT,
|
|
|
|
finish_date TIMESTAMP,
|
|
|
|
order_index INTEGER NOT NULL,
|
2023-05-03 16:59:54 +00:00
|
|
|
time_created TIMESTAMPTZ NOT NULL,
|
|
|
|
last_updated TIMESTAMPTZ NOT NULL
|
|
|
|
);
|