This repository has been archived on 2022-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
2022-09-16 08:01:48 +00:00
|
|
|
init_db_tables_sql = """
|
|
|
|
|
|
|
|
CREATE TABLE projects ( \
|
|
|
|
id SERIAL PRIMARY KEY, \
|
|
|
|
name varchar(50), \
|
|
|
|
description varchar(1000), \
|
|
|
|
creator varchar(30), \
|
2022-09-16 08:04:14 +00:00
|
|
|
contributors smallint DEFAULT 1, \
|
2022-09-16 08:01:48 +00:00
|
|
|
status bit(1) DEFAULT 1, \
|
|
|
|
tags varchar(100), \
|
|
|
|
category varchar(20), \
|
|
|
|
creation_date date, \
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE users ( \
|
|
|
|
user_id bigint PRIMARY KEY, \
|
|
|
|
is_admin boolean DEFAULT FALSE, \
|
|
|
|
);
|
|
|
|
|
|
|
|
"""
|