459 lines
11 KiB
JSON
459 lines
11 KiB
JSON
|
|
{
|
||
|
|
"version": "6",
|
||
|
|
"dialect": "sqlite",
|
||
|
|
"id": "0f1b703a-dee9-40f5-807c-776649af94d9",
|
||
|
|
"prevId": "00000000-0000-0000-0000-000000000000",
|
||
|
|
"tables": {
|
||
|
|
"attachments": {
|
||
|
|
"name": "attachments",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"message_id": {
|
||
|
|
"name": "message_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"guild_id": {
|
||
|
|
"name": "guild_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"channel_id": {
|
||
|
|
"name": "channel_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"thread_id": {
|
||
|
|
"name": "thread_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"user_id": {
|
||
|
|
"name": "user_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"filename": {
|
||
|
|
"name": "filename",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"size": {
|
||
|
|
"name": "size",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"type": {
|
||
|
|
"name": "type",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"discord_url": {
|
||
|
|
"name": "discord_url",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"uploaded_url": {
|
||
|
|
"name": "uploaded_url",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"upload_status": {
|
||
|
|
"name": "upload_status",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false,
|
||
|
|
"default": "'pending'"
|
||
|
|
},
|
||
|
|
"upload_error": {
|
||
|
|
"name": "upload_error",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"created_at": {
|
||
|
|
"name": "created_at",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"uploaded_at": {
|
||
|
|
"name": "uploaded_at",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"idx_attachments_channel": {
|
||
|
|
"name": "idx_attachments_channel",
|
||
|
|
"columns": [
|
||
|
|
"channel_id"
|
||
|
|
],
|
||
|
|
"isUnique": false
|
||
|
|
},
|
||
|
|
"idx_attachments_message": {
|
||
|
|
"name": "idx_attachments_message",
|
||
|
|
"columns": [
|
||
|
|
"message_id"
|
||
|
|
],
|
||
|
|
"isUnique": false
|
||
|
|
},
|
||
|
|
"idx_attachments_status": {
|
||
|
|
"name": "idx_attachments_status",
|
||
|
|
"columns": [
|
||
|
|
"upload_status"
|
||
|
|
],
|
||
|
|
"isUnique": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"checkConstraints": {}
|
||
|
|
},
|
||
|
|
"messages": {
|
||
|
|
"name": "messages",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"guild_id": {
|
||
|
|
"name": "guild_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"channel_id": {
|
||
|
|
"name": "channel_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"thread_id": {
|
||
|
|
"name": "thread_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"user_id": {
|
||
|
|
"name": "user_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"username": {
|
||
|
|
"name": "username",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"avatar_url": {
|
||
|
|
"name": "avatar_url",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"content": {
|
||
|
|
"name": "content",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"edited_content": {
|
||
|
|
"name": "edited_content",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"created_at": {
|
||
|
|
"name": "created_at",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"edited_at": {
|
||
|
|
"name": "edited_at",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"deleted_at": {
|
||
|
|
"name": "deleted_at",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"type": {
|
||
|
|
"name": "type",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false,
|
||
|
|
"default": "'text'"
|
||
|
|
},
|
||
|
|
"metadata": {
|
||
|
|
"name": "metadata",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"ai_status": {
|
||
|
|
"name": "ai_status",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false,
|
||
|
|
"default": "'pending'"
|
||
|
|
},
|
||
|
|
"ai_moderation_flags": {
|
||
|
|
"name": "ai_moderation_flags",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"ai_moderation_score": {
|
||
|
|
"name": "ai_moderation_score",
|
||
|
|
"type": "real",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"ai_moderation_raw": {
|
||
|
|
"name": "ai_moderation_raw",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"ai_analysis": {
|
||
|
|
"name": "ai_analysis",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"ai_analyzed_at": {
|
||
|
|
"name": "ai_analyzed_at",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"ai_error": {
|
||
|
|
"name": "ai_error",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"idx_messages_channel": {
|
||
|
|
"name": "idx_messages_channel",
|
||
|
|
"columns": [
|
||
|
|
"channel_id"
|
||
|
|
],
|
||
|
|
"isUnique": false
|
||
|
|
},
|
||
|
|
"idx_messages_user": {
|
||
|
|
"name": "idx_messages_user",
|
||
|
|
"columns": [
|
||
|
|
"user_id"
|
||
|
|
],
|
||
|
|
"isUnique": false
|
||
|
|
},
|
||
|
|
"idx_messages_created": {
|
||
|
|
"name": "idx_messages_created",
|
||
|
|
"columns": [
|
||
|
|
"created_at"
|
||
|
|
],
|
||
|
|
"isUnique": false
|
||
|
|
},
|
||
|
|
"idx_messages_thread": {
|
||
|
|
"name": "idx_messages_thread",
|
||
|
|
"columns": [
|
||
|
|
"thread_id"
|
||
|
|
],
|
||
|
|
"isUnique": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"checkConstraints": {}
|
||
|
|
},
|
||
|
|
"muxer_jobs": {
|
||
|
|
"name": "muxer_jobs",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"data": {
|
||
|
|
"name": "data",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"status": {
|
||
|
|
"name": "status",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false,
|
||
|
|
"default": "'pending'"
|
||
|
|
},
|
||
|
|
"attempts": {
|
||
|
|
"name": "attempts",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false,
|
||
|
|
"default": 0
|
||
|
|
},
|
||
|
|
"maxAttempts": {
|
||
|
|
"name": "maxAttempts",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false,
|
||
|
|
"default": 3
|
||
|
|
},
|
||
|
|
"createdAt": {
|
||
|
|
"name": "createdAt",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"updatedAt": {
|
||
|
|
"name": "updatedAt",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"error": {
|
||
|
|
"name": "error",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false,
|
||
|
|
"autoincrement": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"idx_muxer_jobs_status": {
|
||
|
|
"name": "idx_muxer_jobs_status",
|
||
|
|
"columns": [
|
||
|
|
"status"
|
||
|
|
],
|
||
|
|
"isUnique": false
|
||
|
|
},
|
||
|
|
"idx_muxer_jobs_createdAt": {
|
||
|
|
"name": "idx_muxer_jobs_createdAt",
|
||
|
|
"columns": [
|
||
|
|
"createdAt"
|
||
|
|
],
|
||
|
|
"isUnique": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"checkConstraints": {}
|
||
|
|
},
|
||
|
|
"ui_state": {
|
||
|
|
"name": "ui_state",
|
||
|
|
"columns": {
|
||
|
|
"key": {
|
||
|
|
"name": "key",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"value": {
|
||
|
|
"name": "value",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
},
|
||
|
|
"updated_at": {
|
||
|
|
"name": "updated_at",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"autoincrement": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"checkConstraints": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"views": {},
|
||
|
|
"enums": {},
|
||
|
|
"_meta": {
|
||
|
|
"schemas": {},
|
||
|
|
"tables": {},
|
||
|
|
"columns": {}
|
||
|
|
},
|
||
|
|
"internal": {
|
||
|
|
"indexes": {}
|
||
|
|
}
|
||
|
|
}
|