init
This commit is contained in:
436
docs/Task&Coffee.ddb
Normal file
436
docs/Task&Coffee.ddb
Normal file
@@ -0,0 +1,436 @@
|
||||
{
|
||||
"author": "Unnamed",
|
||||
"title": "Task&Coffee",
|
||||
"date": "2025-03-27T21:10:04.996Z",
|
||||
"tables": [
|
||||
{
|
||||
"id": 0,
|
||||
"name": "Users",
|
||||
"x": -104.8410100000001,
|
||||
"y": -43.33970937500004,
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "INT",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": true,
|
||||
"unique": true,
|
||||
"notNull": true,
|
||||
"increment": true,
|
||||
"comment": "",
|
||||
"id": 0
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"type": "CHAR",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": true,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 1,
|
||||
"size": 50
|
||||
},
|
||||
{
|
||||
"name": "password",
|
||||
"type": "VARCHAR",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": true,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 2,
|
||||
"size": 255
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"type": "CHAR",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": true,
|
||||
"notNull": true,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 3,
|
||||
"size": 1
|
||||
},
|
||||
{
|
||||
"name": "telegram_id",
|
||||
"type": "BIGINT",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": true,
|
||||
"notNull": false,
|
||||
"increment": false,
|
||||
"comment": "телеграм id для ответов пользователю",
|
||||
"id": 4
|
||||
},
|
||||
{
|
||||
"name": "avatar_path ",
|
||||
"type": "VARCHAR",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": false,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 5,
|
||||
"size": 255
|
||||
}
|
||||
],
|
||||
"comment": "Данные пользователя",
|
||||
"indices": [],
|
||||
"color": "#6360f7",
|
||||
"key": 1742200210667
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Tasks",
|
||||
"x": 229,
|
||||
"y": 65,
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "INT",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": true,
|
||||
"unique": true,
|
||||
"notNull": true,
|
||||
"increment": true,
|
||||
"comment": "",
|
||||
"id": 0
|
||||
},
|
||||
{
|
||||
"name": "user_id",
|
||||
"type": "INT",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": true,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 1,
|
||||
"size": 20
|
||||
},
|
||||
{
|
||||
"name": "title",
|
||||
"type": "CHAR",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": true,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 2,
|
||||
"size": 20
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"type": "TEXT",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": false,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 3,
|
||||
"size": 65535,
|
||||
"values": []
|
||||
},
|
||||
{
|
||||
"name": "due_date",
|
||||
"type": "DATE",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": false,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 4,
|
||||
"size": "",
|
||||
"values": []
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"type": "ENUM",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": true,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 5,
|
||||
"values": [
|
||||
"open",
|
||||
"closed",
|
||||
"in_progress",
|
||||
"todo"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "priority",
|
||||
"type": "ENUM",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": true,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 6,
|
||||
"size": "",
|
||||
"values": [
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"critical"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "created_at",
|
||||
"type": "TIMESTAMP",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": true,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 7,
|
||||
"size": "",
|
||||
"values": []
|
||||
},
|
||||
{
|
||||
"name": "time_spent",
|
||||
"type": "INT",
|
||||
"default": "0",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": false,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 8,
|
||||
"values": [],
|
||||
"size": ""
|
||||
}
|
||||
],
|
||||
"comment": " Задачи пользователя",
|
||||
"indices": [],
|
||||
"color": "#f03c3c",
|
||||
"key": 1742200955993
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "Tags",
|
||||
"x": 698,
|
||||
"y": 533,
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "INT",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": true,
|
||||
"unique": true,
|
||||
"notNull": true,
|
||||
"increment": true,
|
||||
"comment": "",
|
||||
"id": 0
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"type": "CHAR",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": false,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 1,
|
||||
"size": 20
|
||||
}
|
||||
],
|
||||
"comment": "",
|
||||
"indices": [],
|
||||
"color": "#175e7a",
|
||||
"key": 1742202331481
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "Attachments",
|
||||
"x": 693,
|
||||
"y": -13,
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "INT",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": true,
|
||||
"unique": true,
|
||||
"notNull": true,
|
||||
"increment": true,
|
||||
"comment": "",
|
||||
"id": 0
|
||||
},
|
||||
{
|
||||
"name": "task_id",
|
||||
"type": "INT",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": true,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 1,
|
||||
"size": 255
|
||||
},
|
||||
{
|
||||
"name": "file_path",
|
||||
"type": "VARCHAR",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": true,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 2,
|
||||
"size": 255
|
||||
},
|
||||
{
|
||||
"name": "uploaded_at",
|
||||
"type": "TIMESTAMP",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": false,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 3,
|
||||
"size": "",
|
||||
"values": []
|
||||
}
|
||||
],
|
||||
"comment": "",
|
||||
"indices": [],
|
||||
"color": "#3cde7d",
|
||||
"key": 1742203353583
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "Task_Assignees",
|
||||
"x": 287,
|
||||
"y": 560,
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "INT",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": true,
|
||||
"unique": true,
|
||||
"notNull": true,
|
||||
"increment": true,
|
||||
"comment": "",
|
||||
"id": 0
|
||||
},
|
||||
{
|
||||
"name": "task_id",
|
||||
"type": "INT",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": true,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 1
|
||||
},
|
||||
{
|
||||
"name": "tags_id",
|
||||
"type": "INT",
|
||||
"default": "",
|
||||
"check": "",
|
||||
"primary": false,
|
||||
"unique": false,
|
||||
"notNull": true,
|
||||
"increment": false,
|
||||
"comment": "",
|
||||
"id": 2
|
||||
}
|
||||
],
|
||||
"comment": "",
|
||||
"indices": [],
|
||||
"color": "#7d9dff",
|
||||
"key": 1742204065899
|
||||
}
|
||||
],
|
||||
"relationships": [
|
||||
{
|
||||
"startTableId": 0,
|
||||
"startFieldId": 0,
|
||||
"endTableId": 1,
|
||||
"endFieldId": 1,
|
||||
"cardinality": "One to many",
|
||||
"updateConstraint": "No action",
|
||||
"deleteConstraint": "No action",
|
||||
"name": "Users_id_fk",
|
||||
"id": 0
|
||||
},
|
||||
{
|
||||
"startTableId": 1,
|
||||
"startFieldId": 0,
|
||||
"endTableId": 3,
|
||||
"endFieldId": 1,
|
||||
"cardinality": "One to many",
|
||||
"updateConstraint": "No action",
|
||||
"deleteConstraint": "No action",
|
||||
"name": "Attachments_task_id_fk",
|
||||
"id": 1
|
||||
},
|
||||
{
|
||||
"startTableId": 4,
|
||||
"startFieldId": 2,
|
||||
"endTableId": 2,
|
||||
"endFieldId": 0,
|
||||
"cardinality": "One to one",
|
||||
"updateConstraint": "Cascade",
|
||||
"deleteConstraint": "Cascade",
|
||||
"name": "Tags_id_fk",
|
||||
"id": 2
|
||||
},
|
||||
{
|
||||
"startTableId": 4,
|
||||
"startFieldId": 1,
|
||||
"endTableId": 1,
|
||||
"endFieldId": 0,
|
||||
"cardinality": "One to one",
|
||||
"updateConstraint": "Cascade",
|
||||
"deleteConstraint": "Cascade",
|
||||
"name": "Tasks_id_fk",
|
||||
"id": 3
|
||||
}
|
||||
],
|
||||
"notes": [],
|
||||
"subjectAreas": [],
|
||||
"types": []
|
||||
}
|
||||
Reference in New Issue
Block a user