15 lines
382 B
SQL
15 lines
382 B
SQL
CREATE TABLE IF NOT EXISTS "project" (
|
|
id UUID PRIMARY KEY,
|
|
project_type VARCHAR NOT NULL,
|
|
project_condition VARCHAR NOT NULL,
|
|
agent_id UUID NOT NULL,
|
|
location_id UUID NOT NULL,
|
|
title VARCHAR,
|
|
description TEXT NOT NULL,
|
|
admin_tag VARCHAR,
|
|
floors SMALLINT NOT NULL,
|
|
media TEXT NOT NULL,
|
|
time_created TIMESTAMPTZ NOT NULL,
|
|
last_updated TIMESTAMPTZ NOT NULL
|
|
);
|