-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb_create_sql.json
8 lines (8 loc) · 2.14 KB
/
db_create_sql.json
1
2
3
4
5
6
7
8
{
"project_registration": "CREATE TABLE IF NOT EXISTS project_registration (\n project_id INTEGER PRIMARY KEY AUTOINCREMENT,\n project_name TEXT NOT NULL,\n user TEXT,\n start_timestamp DATETIME,\n end_timestamp DATETIME,\n resources TEXT\n)",
"project_schedule": "CREATE TABLE IF NOT EXISTS project_schedule (\n schedule_id INTEGER NOT NULL UNIQUE,\n project_id INTEGER NOT NULL,\n part_name TEXT NOT NULL,\n user TEXT NOT NULL,\n start_timestamp DATETIME,\n end_timestamp DATETIME,\n notes TEXT,\n PRIMARY KEY(schedule_id AUTOINCREMENT)\n)",
"object": "CREATE TABLE IF NOT EXISTS object (\n object_id INTEGER NOT NULL UNIQUE,\n object_name TEXT NOT NULL,\n object_type TEXT NOT NULL,\n specific_id TEXT NOT NULL,\n user TEXT NOT NULL,\n created_timestamp DATETIME,\n modified_timestamp DATETIME,\n notes TEXT,\n source TEXT NOT NULL,\n PRIMARY KEY(object_id AUTOINCREMENT)\n)",
"tag": "CREATE TABLE IF NOT EXISTS tag (\n tag_id INTEGER NOT NULL UNIQUE,\n object_id INTEGER,\n object_type TEXT,\n tag_name TEXT NOT NULL,\n translated_tag_name TEXT,\n created_timestamp DATETIME,\n modified_timestamp DATETIME,\n used INTEGER,\n description TEXT,\n source TEXT NOT NULL,\n PRIMARY KEY(tag_id AUTOINCREMENT)\n)",
"fs_storage": "CREATE TABLE IF NOT EXISTS fs_storage (\n fs_id INTEGER NOT NULL UNIQUE,\n object_id INTEGER NOT NULL,\n object_name TEXT NOT NULL,\n object_type TEXT NOT NULL,\n object_size TEXT NOT NULL,\n created_timestamp DATETIME,\n modified_timestamp DATETIME,\n source TEXT,\n PRIMARY KEY(fs_id AUTOINCREMENT)\n UNIQUE(object_id, object_name, object_type, object_size, created_timestamp, modified_timestamp, source)\n)",
"link": "CREATE TABLE IF NOT EXISTS link (\n link_id INTEGER NOT NULL UNIQUE,\n src_id INTEGER NOT NULL,\n src_table TEXT NOT NULL,\n tar_id INTEGER NOT NULL,\n tar_table TEXT NOT NULL,\n tar_source TEXT NOT NULL,\n overlap_ratio FLOAT,\n manual_validated INTEGER NOT NULL,\n created_timestamp DATETIME,\n modified_timestamp DATETIME,\n notes TEXT,\n PRIMARY KEY(link_id AUTOINCREMENT)\n)"
}