diff --git a/prisma/diagram.json b/prisma/diagram.json index e69de29..38e5847 100644 --- a/prisma/diagram.json +++ b/prisma/diagram.json @@ -0,0 +1,4577 @@ +{ + "id": "0", + "name": "Main Diagram", + "createdAt": "2026-05-10T04:32:47.067Z", + "updatedAt": "2026-05-12T01:25:01.427Z", + "databaseType": "postgresql", + "tables": [ + { + "id": "1", + "name": "episodes", + "schema": "public", + "x": 196.42495741544377, + "y": 484.48992450910697, + "fields": [ + { + "id": "2", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "3", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "4", + "name": "episode", + "type": { + "id": "smallint", + "name": "smallint" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "5", + "name": "mal_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "6", + "name": "mal_forum_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "7", + "name": "title", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "characterMaximumLength": "155" + }, + { + "id": "8", + "name": "title_origin", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "155" + }, + { + "id": "9", + "name": "title_romanji", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "155" + }, + { + "id": "10", + "name": "aired", + "type": { + "id": "date", + "name": "date" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "11", + "name": "filler", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "default": "false" + }, + { + "id": "12", + "name": "recap", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "default": "false" + }, + { + "id": "13", + "name": "total_score", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777361135322 + }, + { + "id": "14", + "name": "scored_by", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777361233825 + }, + { + "id": "15", + "name": "videos", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "16", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "17", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "18", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + } + ], + "indexes": [ + { + "id": "19", + "name": "", + "unique": true, + "fieldIds": [ + "2" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589093, + "order": 9, + "expanded": true, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "20", + "name": "characters", + "schema": "public", + "x": -1034.1161796853148, + "y": 612.1533274157626, + "fields": [ + { + "id": "21", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "22", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "23", + "name": "image", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "24", + "name": "small_image", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "25", + "name": "mal_id", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "26", + "name": "mal_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "27", + "name": "liked", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "default": "0" + }, + { + "id": "28", + "name": "connections", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "default": "0" + }, + { + "id": "29", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "30", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "31", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + } + ], + "indexes": [ + { + "id": "32", + "name": "", + "unique": true, + "fieldIds": [ + "21" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589093, + "order": 10, + "expanded": true, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "33", + "name": "medias", + "schema": "public", + "x": -335, + "y": -337.5, + "fields": [ + { + "id": "34", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "35", + "name": "mal_id", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "36", + "name": "title", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092, + "characterMaximumLength": "255" + }, + { + "id": "37", + "name": "title_secondary", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092, + "characterMaximumLength": "255" + }, + { + "id": "38", + "name": "title_original", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092, + "characterMaximumLength": "255" + }, + { + "id": "39", + "name": "title_synonyms", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092, + "characterMaximumLength": "255", + "comments": "This is Array" + }, + { + "id": "40", + "name": "trailers", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "41", + "name": "synopsis", + "type": { + "id": "text", + "name": "text" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "42", + "name": "small_image_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092, + "characterMaximumLength": "255" + }, + { + "id": "43", + "name": "medium_image_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092, + "characterMaximumLength": "255" + }, + { + "id": "44", + "name": "large_image_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092, + "characterMaximumLength": "255" + }, + { + "id": "45", + "name": "type", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "46", + "name": "source", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "47", + "name": "status", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "48", + "name": "airing", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092, + "default": "false" + }, + { + "id": "49", + "name": "start_airing", + "type": { + "id": "date", + "name": "date" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "50", + "name": "end_airing", + "type": { + "id": "date", + "name": "date" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "51", + "name": "age_rating", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "52", + "name": "score", + "type": { + "id": "numeric", + "name": "numeric" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092, + "precision": 2, + "scale": 2, + "default": "0" + }, + { + "id": "53", + "name": "score_total", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092, + "default": "0" + }, + { + "id": "54", + "name": "scored_by", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092, + "default": "0" + }, + { + "id": "55", + "name": "favourites", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092, + "default": "0" + }, + { + "id": "56", + "name": "background", + "type": { + "id": "text", + "name": "text" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "57", + "name": "season", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092, + "characterMaximumLength": "15", + "comments": "enum(winter, spring, summer, fall)" + }, + { + "id": "58", + "name": "year", + "type": { + "id": "smallint", + "name": "smallint" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "59", + "name": "country", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777635858846 + }, + { + "id": "60", + "name": "broadcast_date", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092, + "characterMaximumLength": "64" + }, + { + "id": "61", + "name": "producers", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "62", + "name": "licensors", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "63", + "name": "studios", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "64", + "name": "genres", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "65", + "name": "episodes", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "66", + "name": "explicit_genres", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "67", + "name": "themes", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "68", + "name": "demographics", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "69", + "name": "relations", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "70", + "name": "external_links", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "71", + "name": "characters", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "72", + "name": "approved", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092, + "default": "false" + }, + { + "id": "73", + "name": "approved_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "74", + "name": "created_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "75", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + }, + { + "id": "76", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "77", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589092 + } + ], + "indexes": [ + { + "id": "78", + "name": "", + "unique": true, + "fieldIds": [ + "34" + ], + "createdAt": 1777282589092, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777282589092, + "width": 337, + "order": 0, + "expanded": true, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "79", + "name": "media_relations", + "schema": "public", + "x": 196.76101626573526, + "y": -96.79417551573586, + "fields": [ + { + "id": "80", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "81", + "name": "relation", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092, + "characterMaximumLength": "16" + }, + { + "id": "82", + "name": "target_media", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + } + ], + "indexes": [ + { + "id": "83", + "name": "", + "unique": true, + "fieldIds": [ + "80" + ], + "createdAt": 1777282589092, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777282589092, + "order": 1, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "84", + "name": "media_sources", + "schema": "public", + "x": -680.0105470895069, + "y": 97.06852307742538, + "fields": [ + { + "id": "85", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "86", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "characterMaximumLength": "18" + } + ], + "indexes": [ + { + "id": "87", + "name": "", + "unique": true, + "fieldIds": [ + "85" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777282589093, + "order": 5, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "88", + "name": "videos", + "schema": "public", + "x": 612.3480632351478, + "y": 523.768514660268, + "fields": [ + { + "id": "89", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "90", + "name": "service_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "91", + "name": "video_code", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "92", + "name": "short_code", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "93", + "name": "thumbnail_code", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "94", + "name": "download_code", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "95", + "name": "pending_upload", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "default": "true" + }, + { + "id": "96", + "name": "created_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "97", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094 + }, + { + "id": "98", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "99", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + } + ], + "indexes": [ + { + "id": "100", + "name": "", + "unique": true, + "fieldIds": [ + "89" + ], + "createdAt": 1777282589094, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589094, + "order": 15, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "101", + "name": "media_producers", + "schema": "public", + "x": 197.29835902390482, + "y": 69.49260163533236, + "fields": [ + { + "id": "102", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777360177611 + }, + { + "id": "103", + "name": "producer_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": false, + "nullable": false, + "createdAt": 1777360209223 + } + ], + "indexes": [ + { + "id": "104", + "name": "", + "unique": true, + "fieldIds": [ + "102", + "103" + ], + "createdAt": 1777360177611, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777360177611, + "order": 21, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "105", + "name": "media_age_ratings", + "schema": "public", + "x": -679.7484316247582, + "y": 342.88283833657397, + "fields": [ + { + "id": "106", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "107", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "characterMaximumLength": "64" + }, + { + "id": "108", + "name": "min_age", + "type": { + "id": "smallint", + "name": "smallint" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + } + ], + "indexes": [ + { + "id": "109", + "name": "", + "unique": true, + "fieldIds": [ + "106" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777282589093, + "order": 7, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "110", + "name": "media_characters", + "schema": "public", + "x": -679.8245105809615, + "y": 896.9123102253633, + "fields": [ + { + "id": "111", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "112", + "name": "role", + "type": { + "id": "enum", + "name": "enum" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "comments": "main, supporting" + }, + { + "id": "113", + "name": "characters", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "114", + "name": "voice_actor", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + } + ], + "indexes": [ + { + "id": "115", + "name": "", + "unique": true, + "fieldIds": [ + "111" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777282589093, + "order": 8, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "116", + "name": "provisioned_users", + "x": 198.53800896575544, + "y": -1247.1936387119304, + "fields": [ + { + "id": "117", + "name": "provisioned_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": true, + "nullable": false, + "primaryKey": false, + "createdAt": 1778517368377 + }, + { + "id": "118", + "name": "provisioned_to", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778517463769 + }, + { + "id": "119", + "name": "provisioned_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778517476998 + }, + { + "id": "120", + "name": "reason", + "type": { + "id": "bigint", + "name": "bigint" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778517492646 + } + ], + "indexes": [], + "color": "#9ef07a", + "createdAt": 1778517368377, + "isView": false, + "order": 30, + "schema": "public", + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "121", + "name": "system_country", + "x": -675.4825871206289, + "y": -936.5527418709639, + "fields": [ + { + "id": "122", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": true, + "nullable": false, + "primaryKey": true, + "createdAt": 1778401101216 + }, + { + "id": "123", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778401175441, + "characterMaximumLength": "155" + }, + { + "id": "124", + "name": "slug", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778401182473, + "characterMaximumLength": "165" + }, + { + "id": "125", + "name": "code", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778401186425, + "characterMaximumLength": "3" + }, + { + "id": "126", + "name": "flag", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778401191401, + "characterMaximumLength": "255" + }, + { + "id": "127", + "name": "banner", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778401286123, + "characterMaximumLength": "255" + } + ], + "indexes": [ + { + "id": "128", + "name": "", + "fieldIds": [ + "122" + ], + "unique": true, + "isPrimaryKey": true, + "createdAt": 1778401101216 + } + ], + "color": "#b067e9", + "createdAt": 1778401101216, + "isView": false, + "order": 27, + "schema": "public", + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "129", + "name": "media_explicit_genres", + "schema": "public", + "x": -681.3338818918861, + "y": 628.1224828360978, + "fields": [ + { + "id": "130", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777283776082 + }, + { + "id": "131", + "name": "genre_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": false, + "nullable": false, + "createdAt": 1777283808941 + } + ], + "indexes": [ + { + "id": "132", + "name": "", + "unique": true, + "fieldIds": [ + "130", + "131" + ], + "createdAt": 1777283776082, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777283776082, + "comments": "composite primary key = media_id + genre_id ", + "order": 19, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "133", + "name": "media_external_links", + "schema": "public", + "x": 196.86867462069478, + "y": -298.9741574566786, + "fields": [ + { + "id": "134", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "135", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "136", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "64" + }, + { + "id": "137", + "name": "url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + } + ], + "indexes": [ + { + "id": "138", + "name": "", + "unique": true, + "fieldIds": [ + "134" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777282589093, + "order": 3, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "139", + "name": "media_statuses", + "schema": "public", + "x": -679.4669719043579, + "y": 219.3548090436041, + "fields": [ + { + "id": "140", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "141", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1777282589093, + "characterMaximumLength": "64" + } + ], + "indexes": [ + { + "id": "142", + "name": "", + "unique": true, + "fieldIds": [ + "140" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777282589093, + "order": 6, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "143", + "name": "producers", + "schema": "public", + "x": 614.2665328827337, + "y": 137.7660218436568, + "fields": [ + { + "id": "144", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "145", + "name": "mal_id", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "146", + "name": "type", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "characterMaximumLength": "24" + }, + { + "id": "147", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094, + "characterMaximumLength": "155" + }, + { + "id": "148", + "name": "url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "149", + "name": "created_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "150", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094 + }, + { + "id": "151", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "152", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + } + ], + "indexes": [ + { + "id": "153", + "name": "", + "unique": true, + "fieldIds": [ + "144" + ], + "createdAt": 1777282589094, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589094, + "order": 13, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "154", + "name": "user_preferences", + "x": -675.7144111335546, + "y": -1493.2312805453928, + "fields": [ + { + "id": "155", + "name": "user_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": true, + "nullable": false, + "primaryKey": true, + "createdAt": 1778517633815 + }, + { + "id": "156", + "name": "character_as_partner", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778518390023 + }, + { + "id": "157", + "name": "watch_history", + "type": { + "id": "boolean", + "name": "boolean" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778548806729, + "default": "true" + }, + { + "id": "158", + "name": "search_history", + "type": { + "id": "boolean", + "name": "boolean" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778548790804, + "default": "false" + }, + { + "id": "159", + "name": "private_account", + "type": { + "id": "boolean", + "name": "boolean" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778518216561, + "default": "false" + }, + { + "id": "160", + "name": "message_open", + "type": { + "id": "boolean", + "name": "boolean" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778518177601, + "default": "true" + }, + { + "id": "161", + "name": "birthday_open", + "type": { + "id": "boolean", + "name": "boolean" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778518242632, + "default": "false" + }, + { + "id": "162", + "name": "email_open", + "type": { + "id": "boolean", + "name": "boolean" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778518265111, + "default": "false" + }, + { + "id": "163", + "name": "number_open", + "type": { + "id": "boolean", + "name": "boolean" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778518273456, + "default": "false" + }, + { + "id": "164", + "name": "partner_open", + "type": { + "id": "boolean", + "name": "boolean" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778518357114, + "default": "true" + } + ], + "indexes": [ + { + "id": "165", + "name": "", + "fieldIds": [ + "155" + ], + "unique": true, + "isPrimaryKey": true, + "createdAt": 1778517633815 + } + ], + "color": "#4dee8a", + "createdAt": 1778517633815, + "isView": false, + "order": 31, + "schema": "public", + "expanded": true, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "166", + "name": "user_oauth_credentials", + "x": 196.34821847988283, + "y": -849.1992179045876, + "fields": [ + { + "id": "167", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": true, + "nullable": false, + "primaryKey": true, + "createdAt": 1778516299633 + }, + { + "id": "168", + "name": "user_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778516366928 + }, + { + "id": "169", + "name": "oauth_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778516373206 + }, + { + "id": "170", + "name": "provider_token", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778516403942 + }, + { + "id": "171", + "name": "provider_sub", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778516761873 + }, + { + "id": "172", + "name": "last_action", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778516872367 + } + ], + "indexes": [ + { + "id": "173", + "name": "", + "fieldIds": [ + "167" + ], + "unique": true, + "isPrimaryKey": true, + "createdAt": 1778516299633 + }, + { + "id": "174", + "name": "index_2", + "fieldIds": [ + "169", + "168" + ], + "unique": true, + "createdAt": 1778516903425 + } + ], + "color": "#4dee8a", + "createdAt": 1778516299633, + "isView": false, + "order": 29, + "schema": "public", + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "175", + "name": "staff", + "schema": "public", + "x": -1353.8131838183044, + "y": 434.2501348320311, + "fields": [ + { + "id": "176", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "177", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "178", + "name": "image", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "179", + "name": "mal_id", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "180", + "name": "mal_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "181", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "182", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "183", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + } + ], + "indexes": [ + { + "id": "184", + "name": "", + "unique": true, + "fieldIds": [ + "176" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589093, + "order": 12, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "185", + "name": "users", + "x": -333.07222985751173, + "y": -1032.6662184555098, + "fields": [ + { + "id": "186", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": true, + "nullable": false, + "primaryKey": true, + "createdAt": 1778390635628 + }, + { + "id": "187", + "name": "email", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": true, + "nullable": false, + "primaryKey": false, + "createdAt": 1778391266880 + }, + { + "id": "188", + "name": "password", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778391484055, + "characterMaximumLength": "255" + }, + { + "id": "189", + "name": "username", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": true, + "nullable": false, + "primaryKey": false, + "createdAt": 1778390646288, + "characterMaximumLength": "28" + }, + { + "id": "190", + "name": "fullname", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778390830584, + "characterMaximumLength": "32" + }, + { + "id": "191", + "name": "avatar", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778390861984, + "characterMaximumLength": "255" + }, + { + "id": "192", + "name": "bio", + "type": { + "id": "text", + "name": "text" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778390888222 + }, + { + "id": "193", + "name": "datebirth", + "type": { + "id": "date", + "name": "date" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778391007890 + }, + { + "id": "194", + "name": "sex", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778391031530, + "characterMaximumLength": "12" + }, + { + "id": "195", + "name": "phone_number", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778391449319, + "characterMaximumLength": "15" + }, + { + "id": "196", + "name": "address", + "type": { + "id": "address", + "name": "address" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778401066100 + }, + { + "id": "197", + "name": "country", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778401621258 + }, + { + "id": "198", + "name": "auth_provider", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778515919288, + "characterMaximumLength": "64" + }, + { + "id": "199", + "name": "provider_token", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778515934284, + "characterMaximumLength": "255" + }, + { + "id": "200", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778517117468, + "default": "now()" + }, + { + "id": "201", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778517127447 + }, + { + "id": "202", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "unique": false, + "nullable": true, + "primaryKey": false, + "createdAt": 1778517147463 + } + ], + "indexes": [ + { + "id": "203", + "name": "", + "fieldIds": [ + "186" + ], + "unique": true, + "isPrimaryKey": true, + "createdAt": 1778390635628 + }, + { + "id": "204", + "name": "index_2", + "fieldIds": [ + "189" + ], + "unique": true, + "createdAt": 1778401234711 + }, + { + "id": "205", + "name": "index_3", + "fieldIds": [ + "187" + ], + "unique": true, + "createdAt": 1778401248519 + } + ], + "color": "#4dee8a", + "createdAt": 1778390635628, + "isView": false, + "order": 26, + "schema": "public", + "expanded": true, + "checkConstraints": [], + "width": 337, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "206", + "name": "media_studios", + "schema": "public", + "x": 199.29817359050787, + "y": 347.7468004324893, + "fields": [ + { + "id": "207", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777360514222 + }, + { + "id": "208", + "name": "producer_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": false, + "nullable": false, + "createdAt": 1777360544975 + } + ], + "indexes": [ + { + "id": "209", + "name": "", + "unique": true, + "fieldIds": [ + "207", + "208" + ], + "createdAt": 1777360514222, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777360514222, + "order": 23, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "210", + "name": "media_licencors", + "schema": "public", + "x": 196.51843134292955, + "y": 207.07984381762645, + "fields": [ + { + "id": "211", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777360331507 + }, + { + "id": "212", + "name": "producer_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": false, + "nullable": false, + "createdAt": 1777360363236 + } + ], + "indexes": [ + { + "id": "213", + "name": "", + "unique": true, + "fieldIds": [ + "211", + "212" + ], + "createdAt": 1777360331507, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777360331507, + "order": 22, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "214", + "name": "genres", + "schema": "public", + "x": -1029.312729060423, + "y": 207.074167755134, + "fields": [ + { + "id": "215", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "216", + "name": "mal_id", + "type": { + "id": "smallint", + "name": "smallint" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094 + }, + { + "id": "217", + "name": "type", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094, + "characterMaximumLength": "16" + }, + { + "id": "218", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094, + "characterMaximumLength": "32" + }, + { + "id": "219", + "name": "url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "155" + } + ], + "indexes": [ + { + "id": "220", + "name": "", + "unique": true, + "fieldIds": [ + "215" + ], + "createdAt": 1777282589094, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589094, + "order": 14, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "221", + "name": "voice_actors", + "schema": "public", + "x": -1034.2719335611268, + "y": 442.32720385328116, + "fields": [ + { + "id": "222", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "223", + "name": "language", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "115" + }, + { + "id": "224", + "name": "actor_staff", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + } + ], + "indexes": [ + { + "id": "225", + "name": "", + "unique": true, + "fieldIds": [ + "222" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589093, + "order": 11, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "226", + "name": "media_genres", + "schema": "public", + "x": -680.2926238134676, + "y": 498.7845736528544, + "fields": [ + { + "id": "227", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777283473368 + }, + { + "id": "228", + "name": "genre_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": false, + "nullable": false, + "createdAt": 1777283550230 + } + ], + "indexes": [ + { + "id": "229", + "name": "", + "unique": true, + "fieldIds": [ + "227", + "228" + ], + "createdAt": 1777283473368, + "isPrimaryKey": true + } + ], + "checkConstraints": [], + "color": "#ffe374", + "isView": false, + "createdAt": 1777283473368, + "comments": "composite primary key = media_id + genre_id ", + "order": 18, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "230", + "name": "video_services", + "schema": "public", + "x": 76.84794405482987, + "y": 1174.3220047083446, + "fields": [ + { + "id": "231", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "232", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094, + "characterMaximumLength": "155" + }, + { + "id": "233", + "name": "resolution", + "type": { + "id": "smallint", + "name": "smallint" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "234", + "name": "domain", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "235", + "name": "image_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "236", + "name": "hex_color", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "10" + }, + { + "id": "237", + "name": "endpoint_video", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "238", + "name": "endpoint_short", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "239", + "name": "endpoint_image", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "240", + "name": "endpoint_download", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "241", + "name": "created_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "242", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094 + }, + { + "id": "243", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "244", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + } + ], + "indexes": [ + { + "id": "245", + "name": "", + "unique": true, + "fieldIds": [ + "231" + ], + "createdAt": 1777282589094, + "isPrimaryKey": true + }, + { + "id": "246", + "name": "idx_video_services_name_resolution", + "unique": true, + "fieldIds": [ + "232", + "233" + ], + "createdAt": 1777282589094 + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589094, + "width": 337, + "order": 16, + "expanded": true, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "247", + "name": "media_submissions", + "schema": "public", + "x": -677.2819917810897, + "y": -656.6674640748546, + "fields": [ + { + "id": "248", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777362610195 + }, + { + "id": "249", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362624424 + }, + { + "id": "250", + "name": "created_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362635996, + "comments": "" + }, + { + "id": "251", + "name": "status", + "type": { + "id": "status_submission", + "name": "status_submission" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362700148, + "comments": "" + }, + { + "id": "252", + "name": "reviewed_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777362758238 + }, + { + "id": "253", + "name": "reviewed_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777363627973 + }, + { + "id": "254", + "name": "reason", + "type": { + "id": "text", + "name": "text" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777363674757 + }, + { + "id": "255", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777363686543, + "default": "now()" + } + ], + "indexes": [ + { + "id": "256", + "name": "", + "unique": true, + "fieldIds": [ + "248" + ], + "createdAt": 1777362610195, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777362610195, + "order": 24, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "257", + "name": "video_service_submissions", + "schema": "public", + "x": -333.34786174583087, + "y": 1240.4231339730102, + "fields": [ + { + "id": "258", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777362610195 + }, + { + "id": "259", + "name": "video_service_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362624424 + }, + { + "id": "260", + "name": "created_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362635996, + "comments": "" + }, + { + "id": "261", + "name": "status", + "type": { + "id": "status_submission", + "name": "status_submission" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362700148, + "default": "pending", + "comments": "" + }, + { + "id": "262", + "name": "reviewed_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777362758238 + }, + { + "id": "263", + "name": "reviewed_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777363627973 + }, + { + "id": "264", + "name": "reason", + "type": { + "id": "text", + "name": "text" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777363674757 + }, + { + "id": "265", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777363686543, + "default": "now()" + } + ], + "indexes": [ + { + "id": "266", + "name": "", + "unique": true, + "fieldIds": [ + "258" + ], + "createdAt": 1777362610195, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777362610195, + "width": 337, + "order": 24, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "267", + "name": "media_trailers", + "schema": "public", + "x": -675.1193235825539, + "y": -319.10973511128714, + "fields": [ + { + "id": "268", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "269", + "name": "url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092, + "characterMaximumLength": "255" + }, + { + "id": "270", + "name": "embed_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092, + "characterMaximumLength": "255" + }, + { + "id": "271", + "name": "small_image_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092, + "characterMaximumLength": "255" + }, + { + "id": "272", + "name": "medium_image_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092, + "characterMaximumLength": "255" + }, + { + "id": "273", + "name": "large_image_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "274", + "name": "maximum_image_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + } + ], + "indexes": [ + { + "id": "275", + "name": "", + "unique": true, + "fieldIds": [ + "268" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777282589093, + "order": 2, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "276", + "name": "media_types", + "schema": "public", + "x": -678.8247906473255, + "y": -28.0163584990978, + "fields": [ + { + "id": "277", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "278", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "characterMaximumLength": "18" + } + ], + "indexes": [ + { + "id": "279", + "name": "", + "unique": true, + "fieldIds": [ + "277" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777282589093, + "order": 4, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "280", + "name": "user_follows", + "x": 196.81483126623533, + "y": -1028.2763104312094, + "fields": [ + { + "id": "281", + "name": "follower_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": true, + "nullable": false, + "primaryKey": false, + "createdAt": 1778401701334 + }, + { + "id": "282", + "name": "following_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778401722682 + }, + { + "id": "283", + "name": "followed_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778401734762 + } + ], + "indexes": [ + { + "id": "284", + "name": "index_1", + "fieldIds": [ + "282", + "281" + ], + "unique": true, + "createdAt": 1778401874053 + } + ], + "color": "#9ef07a", + "createdAt": 1778401701334, + "isView": false, + "order": 28, + "schema": "public", + "checkConstraints": [ + { + "id": "jx7knny2zwx9u3pt9y2eowuoc", + "expression": "follower_id <> following_id", + "createdAt": 1778402111741 + } + ], + "width": 224, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "285", + "name": "media_themes", + "schema": "public", + "x": -681.5109900103016, + "y": 752.8680228454149, + "fields": [ + { + "id": "286", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777295294621 + }, + { + "id": "287", + "name": "genre_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": false, + "nullable": false, + "createdAt": 1777295323224 + } + ], + "indexes": [ + { + "id": "288", + "name": "", + "unique": true, + "fieldIds": [ + "286", + "287" + ], + "createdAt": 1777295294621, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777295294621, + "width": 224, + "order": 20, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "289", + "name": "user_genre_preferences", + "x": -1031.4466584554384, + "y": -1409.2323402083748, + "fields": [ + { + "id": "290", + "name": "user_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": true, + "nullable": false, + "primaryKey": false, + "createdAt": 1778548513047 + }, + { + "id": "291", + "name": "genre_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778548529915 + }, + { + "id": "292", + "name": "state", + "type": { + "id": "user_preference_state", + "name": "user_preference_state" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778548535529 + } + ], + "indexes": [ + { + "id": "293", + "name": "index_1", + "fieldIds": [ + "290", + "291" + ], + "unique": true, + "createdAt": 1778548614328 + } + ], + "color": "#4dee8a", + "createdAt": 1778548513047, + "isView": false, + "order": 31, + "schema": "public" + }, + { + "id": "294", + "name": "user_rating_preferences", + "x": -1031.8902110080458, + "y": -1219.5448311992495, + "fields": [ + { + "id": "295", + "name": "user_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": true, + "nullable": false, + "primaryKey": false, + "createdAt": 1778548671790 + }, + { + "id": "296", + "name": "rating_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778548699069 + }, + { + "id": "297", + "name": "state", + "type": { + "id": "user_preference_state", + "name": "user_preference_state" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778548704423 + } + ], + "indexes": [], + "color": "#4dee8a", + "createdAt": 1778548671790, + "isView": false, + "order": 32, + "schema": "public" + }, + { + "id": "298", + "name": "user_country_preferences", + "x": -1031.650470781881, + "y": -1037.213119188802, + "fields": [ + { + "id": "299", + "name": "user_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778548950226 + }, + { + "id": "300", + "name": "country_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "unique": true, + "nullable": false, + "primaryKey": false, + "createdAt": 1778548914423 + }, + { + "id": "301", + "name": "state", + "type": { + "id": "user_preference_state", + "name": "user_preference_state" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1778548957483 + } + ], + "indexes": [], + "color": "#4dee8a", + "createdAt": 1778548914423, + "isView": false, + "order": 33, + "schema": "public" + } + ], + "relationships": [ + { + "id": "302", + "name": "episodes_media_id_medias_id", + "sourceSchema": "public", + "sourceTableId": "1", + "targetSchema": "public", + "targetTableId": "33", + "sourceFieldId": "3", + "targetFieldId": "34", + "sourceCardinality": "many", + "targetCardinality": "one", + "createdAt": 1777282589094, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "303", + "name": "episodes_videos_videos_id", + "sourceSchema": "public", + "sourceTableId": "1", + "targetSchema": "public", + "targetTableId": "88", + "sourceFieldId": "15", + "targetFieldId": "89", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777282589095, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "304", + "name": "genres_id_fk", + "sourceSchema": "public", + "sourceTableId": "214", + "targetSchema": "public", + "targetTableId": "285", + "sourceFieldId": "215", + "targetFieldId": "287", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777295361546, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "305", + "name": "media_characters_characters_characters_id", + "sourceSchema": "public", + "sourceTableId": "110", + "targetSchema": "public", + "targetTableId": "20", + "sourceFieldId": "113", + "targetFieldId": "21", + "sourceCardinality": "many", + "targetCardinality": "one", + "createdAt": 1777282589094, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "306", + "name": "media_characters_voice_actor_voice_actors_id", + "sourceSchema": "public", + "sourceTableId": "110", + "targetSchema": "public", + "targetTableId": "221", + "sourceFieldId": "114", + "targetFieldId": "222", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777282589095, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "307", + "name": "media_explicit_genres_genre_id_fk", + "sourceSchema": "public", + "sourceTableId": "214", + "targetSchema": "public", + "targetTableId": "129", + "sourceFieldId": "215", + "targetFieldId": "131", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777283900006, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "308", + "name": "media_explicit_genres_media_id_fk", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "129", + "sourceFieldId": "66", + "targetFieldId": "130", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777283887322, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "309", + "name": "media_external_links_media_id_fk", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "133", + "sourceFieldId": "34", + "targetFieldId": "135", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777299855251, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "310", + "name": "media_external_links_media_id_medias_id", + "sourceSchema": "public", + "sourceTableId": "133", + "targetSchema": "public", + "targetTableId": "33", + "sourceFieldId": "135", + "targetFieldId": "34", + "sourceCardinality": "many", + "targetCardinality": "one", + "createdAt": 1777282589094, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "311", + "name": "media_genres_genre_id_fk", + "sourceSchema": "public", + "sourceTableId": "214", + "targetSchema": "public", + "targetTableId": "226", + "sourceFieldId": "215", + "targetFieldId": "228", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777283616203, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "312", + "name": "media_genres_media_id_fk", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "226", + "sourceFieldId": "64", + "targetFieldId": "227", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777283611719, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "313", + "name": "media_producers_producer_id_fk", + "sourceSchema": "public", + "sourceTableId": "143", + "targetSchema": "public", + "targetTableId": "101", + "sourceFieldId": "144", + "targetFieldId": "103", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777360252829, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "314", + "name": "media_relations_target_media_fk", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "79", + "sourceFieldId": "34", + "targetFieldId": "82", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777299808576, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "315", + "name": "media_relations_target_media_fk", + "sourceSchema": "public", + "sourceTableId": "79", + "targetSchema": "public", + "targetTableId": "33", + "sourceFieldId": "82", + "targetFieldId": "34", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1777299795695, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "316", + "name": "media_relations_target_media_fk", + "sourceSchema": "public", + "sourceTableId": "79", + "targetSchema": "public", + "targetTableId": "33", + "sourceFieldId": "82", + "targetFieldId": "34", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1777299804996, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "317", + "name": "media_relations_target_media_medias_id", + "sourceSchema": "public", + "sourceTableId": "79", + "targetSchema": "public", + "targetTableId": "33", + "sourceFieldId": "82", + "targetFieldId": "34", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777282589094, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "318", + "name": "media_submissions_media_id_fk", + "sourceSchema": "public", + "sourceTableId": "247", + "targetSchema": "public", + "targetTableId": "33", + "sourceFieldId": "249", + "targetFieldId": "34", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777636061160, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "319", + "name": "media_submissions_media_id_fk", + "sourceSchema": "public", + "sourceTableId": "247", + "targetSchema": "public", + "targetTableId": "33", + "sourceFieldId": "249", + "targetFieldId": "34", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1777364362256, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "320", + "name": "media_types_id_medias_type", + "sourceSchema": "public", + "sourceTableId": "276", + "targetSchema": "public", + "targetTableId": "33", + "sourceFieldId": "277", + "targetFieldId": "45", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777282589094, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "321", + "name": "medias_age_rating_media_age_ratings_id", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "105", + "sourceFieldId": "51", + "targetFieldId": "106", + "sourceCardinality": "many", + "targetCardinality": "one", + "createdAt": 1777282589094, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "322", + "name": "medias_characters_media_characters_id", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "110", + "sourceFieldId": "71", + "targetFieldId": "111", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777282589094, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "323", + "name": "medias_country_fk", + "sourceSchema": "public", + "sourceTableId": "121", + "targetSchema": "public", + "targetTableId": "33", + "sourceFieldId": "122", + "targetFieldId": "59", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778402285202, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "324", + "name": "medias_episodes_episodes_id", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "1", + "sourceFieldId": "65", + "targetFieldId": "2", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777282589095, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "325", + "name": "medias_external_links_media_external_links_id", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "133", + "sourceFieldId": "70", + "targetFieldId": "134", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777282589094, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "326", + "name": "medias_licensors_fk", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "210", + "sourceFieldId": "62", + "targetFieldId": "211", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777360403880, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "327", + "name": "medias_producers_fk", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "101", + "sourceFieldId": "61", + "targetFieldId": "102", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777360239834, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "328", + "name": "medias_relations_media_relations_id", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "79", + "sourceFieldId": "69", + "targetFieldId": "80", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777282589094, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "329", + "name": "medias_source_media_sources_id", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "84", + "sourceFieldId": "46", + "targetFieldId": "85", + "sourceCardinality": "many", + "targetCardinality": "one", + "createdAt": 1777282589094, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "330", + "name": "medias_status_media_statuses_id", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "139", + "sourceFieldId": "47", + "targetFieldId": "140", + "sourceCardinality": "many", + "targetCardinality": "one", + "createdAt": 1777282589094, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "331", + "name": "medias_studios_fk", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "206", + "sourceFieldId": "63", + "targetFieldId": "207", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777360574406, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "332", + "name": "medias_themes_fk", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "285", + "sourceFieldId": "67", + "targetFieldId": "286", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777295350412, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "333", + "name": "medias_trailers_media_trailers_id", + "sourceSchema": "public", + "sourceTableId": "33", + "targetSchema": "public", + "targetTableId": "267", + "sourceFieldId": "40", + "targetFieldId": "268", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1777282589094, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "334", + "name": "producers_id_fk", + "sourceSchema": "public", + "sourceTableId": "143", + "targetSchema": "public", + "targetTableId": "210", + "sourceFieldId": "144", + "targetFieldId": "212", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777360416280, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "335", + "name": "producers_id_fk", + "sourceSchema": "public", + "sourceTableId": "143", + "targetSchema": "public", + "targetTableId": "206", + "sourceFieldId": "144", + "targetFieldId": "208", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777360597827, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "336", + "name": "provisioned_users_provisioned_by_fk", + "sourceSchema": "public", + "sourceTableId": "185", + "targetSchema": "public", + "targetTableId": "116", + "sourceFieldId": "186", + "targetFieldId": "117", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778517515380, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "337", + "name": "provisioned_users_provisioned_to_fk", + "sourceSchema": "public", + "sourceTableId": "185", + "targetSchema": "public", + "targetTableId": "116", + "sourceFieldId": "186", + "targetFieldId": "118", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778517541887, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "340", + "name": "user_follows_follower_id_fk", + "sourceSchema": "public", + "sourceTableId": "185", + "targetSchema": "public", + "targetTableId": "280", + "sourceFieldId": "186", + "targetFieldId": "281", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778402073659, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "341", + "name": "user_follows_following_id_fk", + "sourceSchema": "public", + "sourceTableId": "185", + "targetSchema": "public", + "targetTableId": "280", + "sourceFieldId": "186", + "targetFieldId": "282", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778402077836, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "342", + "name": "user_oauth_credentials_id_fk", + "sourceSchema": "public", + "sourceTableId": "185", + "targetSchema": "public", + "targetTableId": "166", + "sourceFieldId": "186", + "targetFieldId": "167", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778516921506, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "343", + "name": "user_preferences_character_as_partner_fk", + "sourceSchema": "public", + "sourceTableId": "20", + "targetSchema": "public", + "targetTableId": "154", + "sourceFieldId": "21", + "targetFieldId": "156", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778518451836, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "346", + "name": "user_preferences_user_id_fk", + "sourceSchema": "public", + "sourceTableId": "154", + "targetSchema": "public", + "targetTableId": "185", + "sourceFieldId": "155", + "targetFieldId": "186", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1778517654898, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "347", + "name": "users_country_fk", + "sourceSchema": "public", + "sourceTableId": "185", + "targetSchema": "public", + "targetTableId": "121", + "sourceFieldId": "197", + "targetFieldId": "122", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1778401651979, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "348", + "name": "video_service_submissions_video_service_id_fk", + "sourceSchema": "public", + "sourceTableId": "257", + "targetSchema": "public", + "targetTableId": "230", + "sourceFieldId": "259", + "targetFieldId": "231", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1777364068966, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "349", + "name": "videos_service_id_video_services_id", + "sourceSchema": "public", + "sourceTableId": "88", + "targetSchema": "public", + "targetTableId": "230", + "sourceFieldId": "90", + "targetFieldId": "231", + "sourceCardinality": "many", + "targetCardinality": "one", + "createdAt": 1777282589095, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "350", + "name": "voice_actors_actor_staff_staff_id", + "sourceSchema": "public", + "sourceTableId": "221", + "targetSchema": "public", + "targetTableId": "175", + "sourceFieldId": "224", + "targetFieldId": "176", + "sourceCardinality": "many", + "targetCardinality": "one", + "createdAt": 1777282589094, + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "351", + "name": "genre_selected_user_id_fk", + "sourceSchema": "public", + "sourceTableId": "154", + "targetSchema": "public", + "targetTableId": "289", + "sourceFieldId": "155", + "targetFieldId": "290", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778548583401 + }, + { + "id": "352", + "name": "genre_selected_genre_id_fk", + "sourceSchema": "public", + "sourceTableId": "214", + "targetSchema": "public", + "targetTableId": "289", + "sourceFieldId": "215", + "targetFieldId": "291", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778548598785 + }, + { + "id": "353", + "name": "rating_selected_user_id_fk", + "sourceSchema": "public", + "sourceTableId": "154", + "targetSchema": "public", + "targetTableId": "294", + "sourceFieldId": "155", + "targetFieldId": "295", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778548748682 + }, + { + "id": "354", + "name": "rating_selected_rating_id_fk", + "sourceSchema": "public", + "sourceTableId": "105", + "targetSchema": "public", + "targetTableId": "294", + "sourceFieldId": "106", + "targetFieldId": "296", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778548767353 + }, + { + "id": "355", + "name": "user_country_preferences_user_id_fk", + "sourceSchema": "public", + "sourceTableId": "154", + "targetSchema": "public", + "targetTableId": "298", + "sourceFieldId": "155", + "targetFieldId": "299", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778549044482 + }, + { + "id": "356", + "name": "user_country_preferences_country_id_fk", + "sourceSchema": "public", + "sourceTableId": "121", + "targetSchema": "public", + "targetTableId": "298", + "sourceFieldId": "122", + "targetFieldId": "300", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778549061296 + } + ], + "dependencies": [], + "areas": [], + "customTypes": [ + { + "id": "357", + "name": "address", + "kind": "composite", + "values": [], + "fields": [ + { + "field": "street_address", + "type": "varchar" + }, + { + "field": "subdistrict", + "type": "varchar" + }, + { + "field": "district", + "type": "varchar" + }, + { + "field": "city", + "type": "varchar" + }, + { + "field": "province", + "type": "varchar" + }, + { + "field": "postal_code", + "type": "int" + } + ], + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "358", + "name": "status_submission", + "kind": "enum", + "values": [ + "pending", + "approved", + "rejected" + ], + "fields": [], + "diagramId": "yqwsqwccoj6v" + }, + { + "id": "359", + "name": "user_preference_state", + "kind": "enum", + "values": [ + "exclude", + "include" + ], + "fields": [], + "diagramId": "yqwsqwccoj6v" + } + ], + "notes": [] +} \ No newline at end of file