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

17 lines
450 B
MySQL
Raw Normal View History

2023-03-15 13:06:42 +00:00
CREATE TABLE IF NOT EXISTS "project" (
id UUID PRIMARY KEY,
2023-03-19 15:21:15 +00:00
project_state VARCHAR NOT NULL,
2023-03-15 13:06:42 +00:00
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,
2023-03-19 15:21:15 +00:00
finish_date TIMESTAMP NOT NULL,
2023-03-15 13:06:42 +00:00
floors SMALLINT NOT NULL,
media TEXT NOT NULL,
time_created TIMESTAMPTZ NOT NULL,
last_updated TIMESTAMPTZ NOT NULL
);