{ "version": "6", "dialect": "sqlite", "id": "662a64ad-8681-48f3-93fe-e0e07aaa5cb6", "prevId": "90bc9682-1832-405b-9b16-394f8fa6eacb", "tables": { "audio_file": { "name": "audio_file", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false }, "filename": { "name": "filename", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "content_type": { "name": "content_type", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "data": { "name": "data", "type": "blob", "primaryKey": false, "notNull": false, "autoincrement": false, "default": "'null'" }, "s3_key": { "name": "s3_key", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "duration": { "name": "duration", "type": "real", "primaryKey": false, "notNull": false, "autoincrement": false }, "file_size": { "name": "file_size", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "created_at": { "name": "created_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "deleted_at": { "name": "deleted_at", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "tags": { "name": "tags", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "'[]'" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "invite_link": { "name": "invite_link", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false }, "token": { "name": "token", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "participant_name": { "name": "participant_name", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "is_used": { "name": "is_used", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": false }, "created_at": { "name": "created_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "used_at": { "name": "used_at", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "deleted_at": { "name": "deleted_at", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "tags": { "name": "tags", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "'[]'" } }, "indexes": { "invite_link_token_unique": { "name": "invite_link_token_unique", "columns": [ "token" ], "isUnique": true } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "overall_rating": { "name": "overall_rating", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false }, "participant_id": { "name": "participant_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "audio_file_id": { "name": "audio_file_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "value": { "name": "value", "type": "real", "primaryKey": false, "notNull": true, "autoincrement": false }, "created_at": { "name": "created_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "updated_at": { "name": "updated_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "deleted_at": { "name": "deleted_at", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": {}, "foreignKeys": { "overall_rating_participant_id_participant_id_fk": { "name": "overall_rating_participant_id_participant_id_fk", "tableFrom": "overall_rating", "tableTo": "participant", "columnsFrom": [ "participant_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "overall_rating_audio_file_id_audio_file_id_fk": { "name": "overall_rating_audio_file_id_audio_file_id_fk", "tableFrom": "overall_rating", "tableTo": "audio_file", "columnsFrom": [ "audio_file_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "participant": { "name": "participant", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false }, "invite_token": { "name": "invite_token", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "session_id": { "name": "session_id", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "created_at": { "name": "created_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "deleted_at": { "name": "deleted_at", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": {}, "foreignKeys": { "participant_invite_token_invite_link_token_fk": { "name": "participant_invite_token_invite_link_token_fk", "tableFrom": "participant", "tableTo": "invite_link", "columnsFrom": [ "invite_token" ], "columnsTo": [ "token" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "participant_progress": { "name": "participant_progress", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false }, "participant_id": { "name": "participant_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "audio_file_id": { "name": "audio_file_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "is_completed": { "name": "is_completed", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": false }, "last_position": { "name": "last_position", "type": "real", "primaryKey": false, "notNull": false, "autoincrement": false, "default": 0 }, "max_reached_time": { "name": "max_reached_time", "type": "real", "primaryKey": false, "notNull": false, "autoincrement": false, "default": 0 }, "updated_at": { "name": "updated_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": {}, "foreignKeys": { "participant_progress_participant_id_participant_id_fk": { "name": "participant_progress_participant_id_participant_id_fk", "tableFrom": "participant_progress", "tableTo": "participant", "columnsFrom": [ "participant_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "participant_progress_audio_file_id_audio_file_id_fk": { "name": "participant_progress_audio_file_id_audio_file_id_fk", "tableFrom": "participant_progress", "tableTo": "audio_file", "columnsFrom": [ "audio_file_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "rating": { "name": "rating", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false }, "participant_id": { "name": "participant_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "audio_file_id": { "name": "audio_file_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "timestamp": { "name": "timestamp", "type": "real", "primaryKey": false, "notNull": true, "autoincrement": false }, "value": { "name": "value", "type": "real", "primaryKey": false, "notNull": true, "autoincrement": false }, "is_completed": { "name": "is_completed", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": false }, "timeseries_data": { "name": "timeseries_data", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "created_at": { "name": "created_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "deleted_at": { "name": "deleted_at", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": {}, "foreignKeys": { "rating_participant_id_participant_id_fk": { "name": "rating_participant_id_participant_id_fk", "tableFrom": "rating", "tableTo": "participant", "columnsFrom": [ "participant_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "rating_audio_file_id_audio_file_id_fk": { "name": "rating_audio_file_id_audio_file_id_fk", "tableFrom": "rating", "tableTo": "audio_file", "columnsFrom": [ "audio_file_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "session": { "name": "session", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "expires_at": { "name": "expires_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": {}, "foreignKeys": { "session_user_id_user_id_fk": { "name": "session_user_id_user_id_fk", "tableFrom": "session", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "user": { "name": "user", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false }, "age": { "name": "age", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "username": { "name": "username", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "password_hash": { "name": "password_hash", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": { "user_username_unique": { "name": "user_username_unique", "columns": [ "username" ], "isUnique": true } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} } }, "views": {}, "enums": {}, "_meta": { "schemas": {}, "tables": {}, "columns": {} }, "internal": { "indexes": {} } }