remax-backend-rs/migrations/1_property.sql
2023-03-09 13:45:16 -04:00

10 lines
247 B
SQL

CREATE TABLE IF NOT EXISTS "property" (
id UUID PRIMARY KEY,
title VARCHAR NOT NULL,
description VARCHAR NOT NULL,
agent_id UUID NOT NULL,
state BYTEA NOT NULL,
time_created TIMESTAMPTZ NOT NULL,
last_updated TIMESTAMPTZ NOT NULL
);