18 lines
412 B
SQL
18 lines
412 B
SQL
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,
|
|
|
|
key TEXT NOT NULL
|
|
);
|
|
|
|
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,
|
|
content TEXT NOT NULL
|
|
);
|