{ "version": "6", "dialect": "sqlite", "id": "f9a16b4f-d676-4bd0-beea-0d038d4a8953", "prevId": "00000000-0000-0000-0000-000000000000", "tables": { "photo_likes": { "name": "photo_likes", "columns": { "photo_id": { "name": "photo_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": {}, "foreignKeys": { "photo_likes_photo_id_photos_id_fk": { "name": "photo_likes_photo_id_photos_id_fk", "tableFrom": "photo_likes", "tableTo": "photos", "columnsFrom": [ "photo_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "photo_likes_user_id_users_id_fk": { "name": "photo_likes_user_id_users_id_fk", "tableFrom": "photo_likes", "tableTo": "users", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": { "photo_likes_photo_id_user_id_pk": { "columns": [ "photo_id", "user_id" ], "name": "photo_likes_photo_id_user_id_pk" } }, "uniqueConstraints": {}, "checkConstraints": {} }, "photos": { "name": "photos", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": false }, "user_id": { "name": "user_id", "type": "text(50)", "primaryKey": false, "notNull": true, "autoincrement": false }, "caption": { "name": "caption", "type": "text(250)", "primaryKey": false, "notNull": false, "autoincrement": false }, "visible": { "name": "visible", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": false } }, "indexes": {}, "foreignKeys": { "photos_user_id_users_id_fk": { "name": "photos_user_id_users_id_fk", "tableFrom": "photos", "tableTo": "users", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "users": { "name": "users", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false }, "username": { "name": "username", "type": "text(50)", "primaryKey": false, "notNull": true, "autoincrement": false }, "password": { "name": "password", "type": "text(50)", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": { "users_username_unique": { "name": "users_username_unique", "columns": [ "username" ], "isUnique": true } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} } }, "views": {}, "enums": {}, "_meta": { "schemas": {}, "tables": {}, "columns": {} }, "internal": { "indexes": {} } }