{ "author": "Unnamed", "title": "Task&Coffee", "date": "2025-04-13T20:32:14.768Z", "tables": [ { "id": 0, "name": "Users", "x": -197.2194850000002, "y": 108.59857187500006, "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": 359.95364004739827, "y": 95.38765625000008, "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": 920.4376437500002, "y": 368.90665624999997, "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": 649.2208625000001, "y": 555.137975, "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 }, { "id": 5, "name": "Comments", "x": 85.14274611544158, "y": -130.41751984174218, "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": false, "increment": false, "comment": "", "id": 1 }, { "name": "user_id", "type": "INT", "default": "", "check": "", "primary": false, "unique": false, "notNull": false, "increment": false, "comment": "", "id": 2 }, { "name": "comment", "type": "TEXT", "default": "", "check": "", "primary": false, "unique": false, "notNull": false, "increment": false, "comment": "", "id": 3, "size": 65535 } ], "comment": "", "indices": [], "color": "#175e7a", "key": 1744576052508 } ], "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 }, { "startTableId": 0, "startFieldId": 0, "endTableId": 5, "endFieldId": 2, "cardinality": "One to many", "updateConstraint": "No action", "deleteConstraint": "No action", "name": "Users_id_fk", "id": 4 }, { "startTableId": 1, "startFieldId": 0, "endTableId": 5, "endFieldId": 1, "cardinality": "One to many", "updateConstraint": "No action", "deleteConstraint": "No action", "name": "Tasks_id_fk", "id": 5 } ], "notes": [], "subjectAreas": [], "types": [] }