{ "dialect": "sqlite", "id": "09c91ede-1e86-47c0-a78b-57795ffc3568", "prevIds": [ "00000000-0000-0000-0000-000000000000" ], "version": "7", "ddl": [ { "name": "guild", "entityType": "tables" }, { "type": "text", "notNull": false, "autoincrement": false, "default": null, "generated": null, "name": "guild_id", "table": "guild", "entityType": "columns" }, { "columns": [ "guild_id" ], "nameExplicit": false, "name": "guild_pk", "table": "guild", "entityType": "pks" }, { "type": "text", "notNull": false, "autoincrement": false, "default": null, "generated": null, "name": "suggestion_forum_id", "table": "guild", "entityType": "columns" }, { "type": "text", "notNull": false, "autoincrement": false, "default": null, "generated": null, "name": "bug_channel_id", "table": "guild", "entityType": "columns" }, { "type": "text", "notNull": false, "autoincrement": false, "default": null, "generated": null, "name": "highlights_channel_id", "table": "guild", "entityType": "columns" }, { "type": "text", "notNull": false, "autoincrement": false, "default": null, "generated": null, "name": "commands_channel_id", "table": "guild", "entityType": "columns" }, { "type": "text", "notNull": false, "autoincrement": false, "default": null, "generated": null, "name": "ticket_channel_id", "table": "guild", "entityType": "columns" }, { "type": "text", "notNull": false, "autoincrement": false, "default": null, "generated": null, "name": "ticket_category_id", "table": "guild", "entityType": "columns" }, { "type": "text", "notNull": false, "autoincrement": false, "default": null, "generated": null, "name": "ticket_message", "table": "guild", "entityType": "columns" }, { "name": "manager", "entityType": "tables" }, { "type": "text", "notNull": false, "autoincrement": false, "default": null, "generated": null, "name": "role_id", "table": "manager", "entityType": "columns" }, { "columns": [ "role_id" ], "nameExplicit": false, "name": "manager_pk", "table": "manager", "entityType": "pks" }, { "type": "text", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "guild_id", "table": "manager", "entityType": "columns" }, { "name": "ticket_attachments", "entityType": "tables" }, { "type": "text", "notNull": false, "autoincrement": false, "default": null, "generated": null, "name": "id", "table": "ticket_attachments", "entityType": "columns" }, { "columns": [ "id" ], "nameExplicit": false, "name": "ticket_attachments_pk", "table": "ticket_attachments", "entityType": "pks" }, { "type": "integer", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "ticket_id", "table": "ticket_attachments", "entityType": "columns" }, { "type": "integer", "notNull": false, "autoincrement": false, "default": null, "generated": null, "name": "message_id", "table": "ticket_attachments", "entityType": "columns" }, { "type": "text", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "file_name", "table": "ticket_attachments", "entityType": "columns" }, { "type": "text", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "content_type", "table": "ticket_attachments", "entityType": "columns" }, { "type": "integer", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "size", "table": "ticket_attachments", "entityType": "columns" }, { "type": "text", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "bucket", "table": "ticket_attachments", "entityType": "columns" }, { "type": "text", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "key", "table": "ticket_attachments", "entityType": "columns" }, { "type": "text", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "url", "table": "ticket_attachments", "entityType": "columns" }, { "type": "integer", "notNull": true, "autoincrement": false, "default": "(unixepoch())", "generated": null, "name": "uploaded_at", "table": "ticket_attachments", "entityType": "columns" }, { "columns": [ "ticket_id" ], "tableTo": "tickets", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "nameExplicit": false, "name": "ticket_attachments_ticket_id_tickets_id_fk", "table": "ticket_attachments", "entityType": "fks" }, { "columns": [ "message_id" ], "tableTo": "ticket_messages", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "nameExplicit": false, "name": "ticket_attachments_message_id_ticket_messages_id_fk", "table": "ticket_attachments", "entityType": "fks" }, { "name": "ticket_messages", "entityType": "tables" }, { "type": "integer", "notNull": false, "autoincrement": true, "default": null, "generated": null, "name": "id", "table": "ticket_messages", "entityType": "columns" }, { "columns": [ "id" ], "nameExplicit": false, "name": "ticket_messages_pk", "table": "ticket_messages", "entityType": "pks" }, { "type": "integer", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "ticket_id", "table": "ticket_messages", "entityType": "columns" }, { "type": "text", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "author_id", "table": "ticket_messages", "entityType": "columns" }, { "type": "text", "notNull": true, "autoincrement": false, "default": "'user'", "generated": null, "name": "author_type", "table": "ticket_messages", "entityType": "columns" }, { "type": "text", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "content", "table": "ticket_messages", "entityType": "columns" }, { "type": "integer", "notNull": true, "autoincrement": false, "default": "(unixepoch())", "generated": null, "name": "created_at", "table": "ticket_messages", "entityType": "columns" }, { "columns": [ { "value": "ticket_id", "isExpression": false } ], "isUnique": false, "where": null, "origin": "manual", "name": "ticket_msgs_ticket_idx", "table": "ticket_messages", "entityType": "indexes" }, { "columns": [ "ticket_id" ], "tableTo": "tickets", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "nameExplicit": false, "name": "ticket_messages_ticket_id_tickets_id_fk", "table": "ticket_messages", "entityType": "fks" }, { "name": "tickets", "entityType": "tables" }, { "type": "integer", "notNull": false, "autoincrement": true, "default": null, "generated": null, "name": "id", "table": "tickets", "entityType": "columns" }, { "columns": [ "id" ], "nameExplicit": false, "name": "tickets_pk", "table": "tickets", "entityType": "pks" }, { "type": "text", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "guild_id", "table": "tickets", "entityType": "columns" }, { "type": "text", "notNull": false, "autoincrement": false, "default": null, "generated": null, "name": "channel_id", "table": "tickets", "entityType": "columns" }, { "type": "text", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "author_id", "table": "tickets", "entityType": "columns" }, { "type": "text", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "anonymous_id", "table": "tickets", "entityType": "columns" }, { "type": "text", "notNull": true, "autoincrement": false, "default": null, "generated": null, "name": "type", "table": "tickets", "entityType": "columns" }, { "type": "text", "notNull": true, "autoincrement": false, "default": "'open'", "generated": null, "name": "status", "table": "tickets", "entityType": "columns" }, { "type": "text", "notNull": false, "autoincrement": false, "default": null, "generated": null, "name": "topic", "table": "tickets", "entityType": "columns" }, { "type": "integer", "notNull": true, "autoincrement": false, "default": "(unixepoch())", "generated": null, "name": "created_at", "table": "tickets", "entityType": "columns" }, { "type": "integer", "notNull": false, "autoincrement": false, "default": null, "generated": null, "name": "closed_at", "table": "tickets", "entityType": "columns" }, { "columns": [ { "value": "guild_id", "isExpression": false } ], "isUnique": false, "where": null, "origin": "manual", "name": "tickets_guild_idx", "table": "tickets", "entityType": "indexes" }, { "columns": [ { "value": "author_id", "isExpression": false } ], "isUnique": false, "where": null, "origin": "manual", "name": "tickets_author_idx", "table": "tickets", "entityType": "indexes" }, { "columns": [ { "value": "status", "isExpression": false } ], "isUnique": false, "where": null, "origin": "manual", "name": "tickets_status_idx", "table": "tickets", "entityType": "indexes" } ], "renames": [] }