jl-backend-rs/migrations/1_project.sql

17 lines
450 B
SQL

CREATE TABLE IF NOT EXISTS "project" (
id UUID PRIMARY KEY,
project_state VARCHAR NOT NULL,
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,
finish_date TIMESTAMP NOT NULL,
floors SMALLINT NOT NULL,
media TEXT NOT NULL,
time_created TIMESTAMPTZ NOT NULL,
last_updated TIMESTAMPTZ NOT NULL
);