pique/migrations/2024-05-31-203133_projects_and_documents/up.sql

19 lines
412 B
MySQL
Raw Normal View History

2024-06-01 00:10:22 +00:00
CREATE TABLE IF NOT EXISTS projects (
id UUID_TEXT PRIMARY KEY NOT NULL UNIQUE,
creator_id UUID_TEXT NOT NULL,
name TEXT NOT NULL,
description TEXT NOT NULL,
2024-06-01 17:18:46 +00:00
key TEXT NOT NULL
2024-06-01 00:10:22 +00:00
);
CREATE TABLE IF NOT EXISTS documents (
id UUID_TEXT PRIMARY KEY NOT NULL UNIQUE,
creator_id UUID_TEXT NOT NULL,
project_id UUID_TEXT NOT NULL,
title TEXT NOT NULL,
2024-06-01 17:18:46 +00:00
content TEXT NOT NULL
2024-06-01 00:10:22 +00:00
);