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

15 lines
382 B
MySQL
Raw Normal View History

2023-03-15 13:06:42 +00:00
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
);