diff --git a/prisma/diagram.json b/prisma/diagram.json index 54cc191..742282d 100644 --- a/prisma/diagram.json +++ b/prisma/diagram.json @@ -1,70 +1,19 @@ { "id": "0", "name": "Main Diagram", - "createdAt": "2026-05-10T04:32:47.067Z", - "updatedAt": "2026-05-15T05:21:25.030Z", + "createdAt": "2026-05-19T16:28:02.086Z", + "updatedAt": "2026-05-19T16:37:21.649Z", "databaseType": "postgresql", "tables": [ { "id": "1", - "name": "user_rating_preferences", - "x": -1036.138591583759, - "y": -1328.817114710954, + "name": "characters", + "schema": "public", + "x": -1029.4414354197875, + "y": 693.766860683375, "fields": [ { "id": "2", - "name": "user_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": false, - "createdAt": 1778548671790 - }, - { - "id": "3", - "name": "rating_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778548699069 - }, - { - "id": "4", - "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", - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "5", - "name": "episodes", - "schema": "public", - "x": 196.42495741544377, - "y": 550.6255135491608, - "fields": [ - { - "id": "6", "name": "id", "type": { "id": "uuid", @@ -76,23 +25,50 @@ "createdAt": 1777282589093 }, { - "id": "7", - "name": "media_id", + "id": "3", + "name": "name", "type": { - "id": "uuid", - "name": "uuid" + "id": "varchar", + "name": "varchar" }, "primaryKey": false, "unique": false, "nullable": false, - "createdAt": 1777282589093 + "createdAt": 1777282589093, + "characterMaximumLength": "255" }, { - "id": "8", - "name": "episode", + "id": "4", + "name": "image", "type": { - "id": "smallint", - "name": "smallint" + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "5", + "name": "small_image", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "6", + "name": "mal_id", + "type": { + "id": "int", + "name": "int" }, "primaryKey": false, "unique": false, @@ -100,7 +76,7 @@ "createdAt": 1777282589093 }, { - "id": "9", + "id": "7", "name": "mal_url", "type": { "id": "varchar", @@ -112,134 +88,34 @@ "createdAt": 1777282589093, "characterMaximumLength": "255" }, + { + "id": "8", + "name": "liked", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "default": "0" + }, + { + "id": "9", + "name": "connections", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "default": "0" + }, { "id": "10", - "name": "mal_forum_url", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093, - "characterMaximumLength": "255" - }, - { - "id": "11", - "name": "title", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589093, - "characterMaximumLength": "155" - }, - { - "id": "12", - "name": "title_origin", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093, - "characterMaximumLength": "155" - }, - { - "id": "13", - "name": "title_romanji", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093, - "characterMaximumLength": "155" - }, - { - "id": "14", - "name": "aired", - "type": { - "id": "date", - "name": "date" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093 - }, - { - "id": "15", - "name": "filler", - "type": { - "id": "boolean", - "name": "boolean" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589093, - "default": "false" - }, - { - "id": "16", - "name": "recap", - "type": { - "id": "boolean", - "name": "boolean" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589093, - "default": "false" - }, - { - "id": "17", - "name": "total_score", - "type": { - "id": "int", - "name": "int" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777361135322 - }, - { - "id": "18", - "name": "scored_by", - "type": { - "id": "int", - "name": "int" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777361233825 - }, - { - "id": "19", - "name": "videos", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093 - }, - { - "id": "20", "name": "deleted_at", "type": { "id": "timestamp", @@ -251,7 +127,7 @@ "createdAt": 1777282589093 }, { - "id": "21", + "id": "11", "name": "updated_at", "type": { "id": "timestamp", @@ -263,7 +139,7 @@ "createdAt": 1777282589093 }, { - "id": "22", + "id": "12", "name": "created_at", "type": { "id": "timestamp", @@ -277,11 +153,11 @@ ], "indexes": [ { - "id": "23", + "id": "13", "name": "", "unique": true, "fieldIds": [ - "6" + "2" ], "createdAt": 1777282589093, "isPrimaryKey": true @@ -290,19 +166,235 @@ "color": "#ff9f74", "isView": false, "createdAt": 1777282589093, - "order": 9, + "order": 10, "expanded": true, - "diagramId": "yqwsqwccoj6v" + "diagramId": "3taaalng0ut0" }, { - "id": "24", - "name": "characters", + "id": "14", + "name": "media_genres", "schema": "public", - "x": -1038.1914354197875, - "y": 695.016860683375, + "x": -680.2926238134676, + "y": 498.7845736528544, "fields": [ + { + "id": "15", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1777283473368 + }, + { + "id": "16", + "name": "genre_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": false, + "nullable": false, + "createdAt": 1777283550230 + } + ], + "indexes": [ + { + "id": "17", + "name": "", + "unique": true, + "fieldIds": [ + "16" + ], + "createdAt": 1777283473368, + "isPrimaryKey": true + }, + { + "id": "18", + "name": "index_1", + "unique": true, + "fieldIds": [ + "15", + "16" + ], + "createdAt": 1778570545534 + } + ], + "checkConstraints": [], + "color": "#ffe374", + "isView": false, + "createdAt": 1777283473368, + "comments": "composite primary key = media_id + genre_id ", + "order": 18, + "diagramId": "3taaalng0ut0" + }, + { + "id": "19", + "name": "countries", + "schema": "public", + "x": -675.4825871206289, + "y": -936.5527418709639, + "fields": [ + { + "id": "20", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1778401101216 + }, + { + "id": "21", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778401175441, + "characterMaximumLength": "155" + }, + { + "id": "22", + "name": "slug", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1778401182473, + "characterMaximumLength": "165" + }, + { + "id": "23", + "name": "code", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1778401186425, + "characterMaximumLength": "3" + }, + { + "id": "24", + "name": "flag", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778401191401, + "characterMaximumLength": "255" + }, { "id": "25", + "name": "banner", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778401286123, + "characterMaximumLength": "255" + } + ], + "indexes": [ + { + "id": "26", + "name": "", + "unique": true, + "fieldIds": [ + "20" + ], + "createdAt": 1778401101216, + "isPrimaryKey": true + } + ], + "color": "#b067e9", + "isView": false, + "createdAt": 1778401101216, + "order": 27, + "diagramId": "3taaalng0ut0" + }, + { + "id": "27", + "name": "user_country_preferences", + "schema": "public", + "x": -1035.3700148414782, + "y": -1151.086340953631, + "fields": [ + { + "id": "28", + "name": "user_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778548950226 + }, + { + "id": "29", + "name": "country_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1778548914423 + }, + { + "id": "30", + "name": "state", + "type": { + "id": "user_preference_state", + "name": "user_preference_state" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778548957483 + } + ], + "indexes": [], + "color": "#4dee8a", + "isView": false, + "createdAt": 1778548914423, + "order": 33, + "diagramId": "3taaalng0ut0" + }, + { + "id": "31", + "name": "media_characters", + "schema": "public", + "x": -679.8245105809615, + "y": 896.9123102253633, + "fields": [ + { + "id": "32", "name": "id", "type": { "id": "uuid", @@ -313,114 +405,25 @@ "nullable": false, "createdAt": 1777282589093 }, - { - "id": "26", - "name": "name", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589093, - "characterMaximumLength": "255" - }, - { - "id": "27", - "name": "image", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093, - "characterMaximumLength": "255" - }, - { - "id": "28", - "name": "small_image", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093, - "characterMaximumLength": "255" - }, - { - "id": "29", - "name": "mal_id", - "type": { - "id": "int", - "name": "int" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093 - }, - { - "id": "30", - "name": "mal_url", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093, - "characterMaximumLength": "255" - }, - { - "id": "31", - "name": "liked", - "type": { - "id": "int", - "name": "int" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589093, - "default": "0" - }, - { - "id": "32", - "name": "connections", - "type": { - "id": "int", - "name": "int" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093, - "default": "0" - }, { "id": "33", - "name": "deleted_at", + "name": "role", "type": { - "id": "timestamp", - "name": "timestamp" + "id": "enum", + "name": "enum" }, "primaryKey": false, "unique": false, - "nullable": true, - "createdAt": 1777282589093 + "nullable": false, + "createdAt": 1777282589093, + "comments": "main, supporting" }, { "id": "34", - "name": "updated_at", + "name": "characters", "type": { - "id": "timestamp", - "name": "timestamp" + "id": "uuid", + "name": "uuid" }, "primaryKey": false, "unique": false, @@ -429,10 +432,10 @@ }, { "id": "35", - "name": "created_at", + "name": "voice_actor", "type": { - "id": "timestamp", - "name": "timestamp" + "id": "uuid", + "name": "uuid" }, "primaryKey": false, "unique": false, @@ -446,25 +449,24 @@ "name": "", "unique": true, "fieldIds": [ - "25" + "32" ], "createdAt": 1777282589093, "isPrimaryKey": true } ], - "color": "#ff9f74", + "color": "#ffe374", "isView": false, "createdAt": 1777282589093, - "order": 10, - "expanded": true, - "diagramId": "yqwsqwccoj6v" + "order": 8, + "diagramId": "3taaalng0ut0" }, { "id": "37", - "name": "medias", + "name": "media_submissions", "schema": "public", - "x": -338.2943640690703, - "y": -279.84862879126985, + "x": -677.2819917810897, + "y": -656.6674640748546, "fields": [ { "id": "38", @@ -476,10 +478,501 @@ "primaryKey": true, "unique": true, "nullable": false, - "createdAt": 1777282589092 + "createdAt": 1777362610195 }, { "id": "39", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362624424 + }, + { + "id": "40", + "name": "created_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362635996, + "comments": "" + }, + { + "id": "41", + "name": "status", + "type": { + "id": "status_submission", + "name": "status_submission" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362700148, + "comments": "" + }, + { + "id": "42", + "name": "reviewed_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777362758238 + }, + { + "id": "43", + "name": "reviewed_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777363627973 + }, + { + "id": "44", + "name": "reason", + "type": { + "id": "text", + "name": "text" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777363674757 + }, + { + "id": "45", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777363686543, + "default": "now()" + } + ], + "indexes": [ + { + "id": "46", + "name": "", + "unique": true, + "fieldIds": [ + "38" + ], + "createdAt": 1777362610195, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777362610195, + "order": 24, + "diagramId": "3taaalng0ut0" + }, + { + "id": "47", + "name": "home_media_banner", + "schema": "public", + "x": -1034.714934672103, + "y": -969.0938770634809, + "fields": [ + { + "id": "48", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1778771594518 + }, + { + "id": "49", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778771625245 + }, + { + "id": "50", + "name": "created_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778771632111 + }, + { + "id": "51", + "name": "priority", + "type": { + "id": "smallint", + "name": "smallint" + }, + "primaryKey": false, + "unique": true, + "nullable": true, + "createdAt": 1778771638786 + }, + { + "id": "52", + "name": "start_show", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778771679920 + }, + { + "id": "53", + "name": "end_show", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778771687135 + }, + { + "id": "54", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778771693471 + } + ], + "indexes": [ + { + "id": "55", + "name": "", + "unique": true, + "fieldIds": [ + "48" + ], + "createdAt": 1778771594518, + "isPrimaryKey": true + } + ], + "color": "#b067e9", + "isView": false, + "createdAt": 1778771594518, + "order": 39, + "diagramId": "3taaalng0ut0" + }, + { + "id": "56", + "name": "media_external_links", + "schema": "public", + "x": 194.5066892978357, + "y": -264.72537027522213, + "fields": [ + { + "id": "57", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "58", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "59", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "64" + }, + { + "id": "60", + "name": "url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + } + ], + "indexes": [ + { + "id": "61", + "name": "", + "unique": true, + "fieldIds": [ + "57" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777282589093, + "order": 3, + "diagramId": "3taaalng0ut0" + }, + { + "id": "62", + "name": "user_addresses", + "schema": "public", + "x": 655.2842034425264, + "y": -1010.0698801871714, + "fields": [ + { + "id": "63", + "name": "user_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1778816506150 + }, + { + "id": "64", + "name": "street_address", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778816542685, + "characterMaximumLength": "255" + }, + { + "id": "65", + "name": "district", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778816551994, + "characterMaximumLength": "100" + }, + { + "id": "66", + "name": "city", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778816560720, + "characterMaximumLength": "100" + }, + { + "id": "67", + "name": "province", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778816564935, + "characterMaximumLength": "100" + }, + { + "id": "68", + "name": "postal_code", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778816568904, + "characterMaximumLength": "20" + }, + { + "id": "69", + "name": "coordinate", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778816577336, + "characterMaximumLength": "50" + }, + { + "id": "70", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778816585545 + } + ], + "indexes": [ + { + "id": "71", + "name": "", + "unique": true, + "fieldIds": [ + "63" + ], + "createdAt": 1778816506150, + "isPrimaryKey": true + } + ], + "color": "#4dee8a", + "isView": false, + "createdAt": 1778816506150, + "order": 45, + "diagramId": "3taaalng0ut0" + }, + { + "id": "72", + "name": "media_themes", + "schema": "public", + "x": -681.5109900103016, + "y": 752.8680228454149, + "fields": [ + { + "id": "73", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777295294621 + }, + { + "id": "74", + "name": "genre_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": false, + "nullable": false, + "createdAt": 1777295323224 + } + ], + "indexes": [ + { + "id": "75", + "name": "", + "unique": true, + "fieldIds": [ + "73", + "74" + ], + "createdAt": 1777295294621, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777295294621, + "width": 224, + "order": 20, + "diagramId": "3taaalng0ut0" + }, + { + "id": "76", + "name": "medias", + "schema": "public", + "x": -338.2943640690703, + "y": -279.84862879126985, + "fields": [ + { + "id": "77", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "78", "name": "mal_id", "type": { "id": "int", @@ -491,7 +984,7 @@ "createdAt": 1777282589092 }, { - "id": "40", + "id": "79", "name": "title", "type": { "id": "varchar", @@ -504,7 +997,7 @@ "characterMaximumLength": "255" }, { - "id": "41", + "id": "80", "name": "title_secondary", "type": { "id": "varchar", @@ -517,7 +1010,7 @@ "characterMaximumLength": "255" }, { - "id": "42", + "id": "81", "name": "title_original", "type": { "id": "varchar", @@ -530,7 +1023,7 @@ "characterMaximumLength": "255" }, { - "id": "43", + "id": "82", "name": "title_synonyms", "type": { "id": "varchar", @@ -539,12 +1032,13 @@ "primaryKey": false, "unique": false, "nullable": true, + "isArray": true, "createdAt": 1777282589092, "characterMaximumLength": "255", - "comments": "This is Array" + "comments": "" }, { - "id": "44", + "id": "83", "name": "trailers", "type": { "id": "uuid", @@ -556,7 +1050,7 @@ "createdAt": 1777282589092 }, { - "id": "45", + "id": "84", "name": "synopsis", "type": { "id": "text", @@ -568,7 +1062,7 @@ "createdAt": 1777282589092 }, { - "id": "46", + "id": "85", "name": "small_image_url", "type": { "id": "varchar", @@ -581,7 +1075,7 @@ "characterMaximumLength": "255" }, { - "id": "47", + "id": "86", "name": "medium_image_url", "type": { "id": "varchar", @@ -594,7 +1088,7 @@ "characterMaximumLength": "255" }, { - "id": "48", + "id": "87", "name": "large_image_url", "type": { "id": "varchar", @@ -607,7 +1101,7 @@ "characterMaximumLength": "255" }, { - "id": "49", + "id": "88", "name": "type", "type": { "id": "uuid", @@ -619,7 +1113,7 @@ "createdAt": 1777282589092 }, { - "id": "50", + "id": "89", "name": "source", "type": { "id": "uuid", @@ -631,7 +1125,7 @@ "createdAt": 1777282589092 }, { - "id": "51", + "id": "90", "name": "status", "type": { "id": "uuid", @@ -643,7 +1137,7 @@ "createdAt": 1777282589092 }, { - "id": "52", + "id": "91", "name": "airing", "type": { "id": "boolean", @@ -656,7 +1150,7 @@ "default": "false" }, { - "id": "53", + "id": "92", "name": "start_airing", "type": { "id": "date", @@ -668,7 +1162,7 @@ "createdAt": 1777282589092 }, { - "id": "54", + "id": "93", "name": "end_airing", "type": { "id": "date", @@ -680,7 +1174,7 @@ "createdAt": 1777282589092 }, { - "id": "55", + "id": "94", "name": "age_rating", "type": { "id": "uuid", @@ -692,22 +1186,7 @@ "createdAt": 1777282589092 }, { - "id": "56", - "name": "score", - "type": { - "id": "numeric", - "name": "numeric" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589092, - "precision": 2, - "scale": 2, - "default": "0" - }, - { - "id": "57", + "id": "95", "name": "score_total", "type": { "id": "int", @@ -720,8 +1199,8 @@ "default": "0" }, { - "id": "58", - "name": "scored_by", + "id": "96", + "name": "score_count", "type": { "id": "int", "name": "int" @@ -733,20 +1212,7 @@ "default": "0" }, { - "id": "59", - "name": "favourites", - "type": { - "id": "int", - "name": "int" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589092, - "default": "0" - }, - { - "id": "60", + "id": "97", "name": "background", "type": { "id": "text", @@ -758,21 +1224,20 @@ "createdAt": 1777282589092 }, { - "id": "61", + "id": "98", "name": "season", "type": { - "id": "varchar", - "name": "varchar" + "id": "media_season", + "name": "media_season" }, "primaryKey": false, "unique": false, "nullable": false, "createdAt": 1777282589092, - "characterMaximumLength": "15", "comments": "enum(winter, spring, summer, fall)" }, { - "id": "62", + "id": "99", "name": "year", "type": { "id": "smallint", @@ -784,7 +1249,7 @@ "createdAt": 1777282589092 }, { - "id": "63", + "id": "100", "name": "country", "type": { "id": "uuid", @@ -796,7 +1261,7 @@ "createdAt": 1777635858846 }, { - "id": "64", + "id": "101", "name": "broadcast_date", "type": { "id": "varchar", @@ -809,7 +1274,7 @@ "characterMaximumLength": "64" }, { - "id": "65", + "id": "102", "name": "producers", "type": { "id": "uuid", @@ -821,7 +1286,7 @@ "createdAt": 1777282589092 }, { - "id": "66", + "id": "103", "name": "licensors", "type": { "id": "uuid", @@ -833,7 +1298,7 @@ "createdAt": 1777282589092 }, { - "id": "67", + "id": "104", "name": "studios", "type": { "id": "uuid", @@ -845,7 +1310,7 @@ "createdAt": 1777282589092 }, { - "id": "68", + "id": "105", "name": "genres", "type": { "id": "uuid", @@ -857,19 +1322,7 @@ "createdAt": 1777282589092 }, { - "id": "69", - "name": "episodes", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589092 - }, - { - "id": "70", + "id": "106", "name": "explicit_genres", "type": { "id": "uuid", @@ -881,7 +1334,7 @@ "createdAt": 1777282589092 }, { - "id": "71", + "id": "107", "name": "themes", "type": { "id": "uuid", @@ -893,7 +1346,7 @@ "createdAt": 1777282589092 }, { - "id": "72", + "id": "108", "name": "demographics", "type": { "id": "uuid", @@ -905,7 +1358,7 @@ "createdAt": 1777282589092 }, { - "id": "73", + "id": "109", "name": "relations", "type": { "id": "uuid", @@ -917,7 +1370,7 @@ "createdAt": 1777282589092 }, { - "id": "74", + "id": "110", "name": "external_links", "type": { "id": "uuid", @@ -929,7 +1382,7 @@ "createdAt": 1777282589092 }, { - "id": "75", + "id": "111", "name": "characters", "type": { "id": "uuid", @@ -941,7 +1394,7 @@ "createdAt": 1777282589092 }, { - "id": "76", + "id": "112", "name": "approved", "type": { "id": "boolean", @@ -954,7 +1407,7 @@ "default": "false" }, { - "id": "77", + "id": "113", "name": "approved_by", "type": { "id": "uuid", @@ -966,7 +1419,7 @@ "createdAt": 1777282589092 }, { - "id": "78", + "id": "114", "name": "created_by", "type": { "id": "uuid", @@ -978,7 +1431,7 @@ "createdAt": 1777282589092 }, { - "id": "79", + "id": "115", "name": "deleted_at", "type": { "id": "timestamp", @@ -990,7 +1443,7 @@ "createdAt": 1777282589092 }, { - "id": "80", + "id": "116", "name": "updated_at", "type": { "id": "timestamp", @@ -1002,7 +1455,7 @@ "createdAt": 1777282589092 }, { - "id": "81", + "id": "117", "name": "created_at", "type": { "id": "timestamp", @@ -1016,11 +1469,11 @@ ], "indexes": [ { - "id": "82", + "id": "118", "name": "", "unique": true, "fieldIds": [ - "38" + "77" ], "createdAt": 1777282589092, "isPrimaryKey": true @@ -1032,17 +1485,68 @@ "width": 337, "order": 0, "expanded": true, - "diagramId": "yqwsqwccoj6v" + "diagramId": "3taaalng0ut0" }, { - "id": "83", - "name": "media_relations", + "id": "119", + "name": "media_studios", "schema": "public", - "x": 194.39903094287618, - "y": -61.06914750749248, + "x": 194.57420294478976, + "y": 402.07246285824783, "fields": [ { - "id": "84", + "id": "120", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777360514222 + }, + { + "id": "121", + "name": "producer_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": false, + "nullable": false, + "createdAt": 1777360544975 + } + ], + "indexes": [ + { + "id": "122", + "name": "", + "unique": true, + "fieldIds": [ + "120", + "121" + ], + "createdAt": 1777360514222, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777360514222, + "order": 23, + "diagramId": "3taaalng0ut0" + }, + { + "id": "123", + "name": "comments", + "schema": "public", + "x": -1035.4972528190797, + "y": -21.831519473281823, + "fields": [ + { + "id": "124", "name": "id", "type": { "id": "uuid", @@ -1051,61 +1555,109 @@ "primaryKey": true, "unique": true, "nullable": false, - "createdAt": 1777282589092 + "createdAt": 1778772484798 }, { - "id": "85", - "name": "relation", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589092, - "characterMaximumLength": "16" - }, - { - "id": "86", - "name": "target_media", + "id": "125", + "name": "user_id", "type": { "id": "uuid", "name": "uuid" }, "primaryKey": false, "unique": false, + "nullable": false, + "createdAt": 1778772536237 + }, + { + "id": "126", + "name": "episode_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778772542751 + }, + { + "id": "127", + "name": "content", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778772548786, + "characterMaximumLength": "255" + }, + { + "id": "128", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778777149915 + }, + { + "id": "129", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778777198204 + }, + { + "id": "130", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, "nullable": true, - "createdAt": 1777282589092 + "createdAt": 1778777213469 } ], "indexes": [ { - "id": "87", + "id": "131", "name": "", "unique": true, "fieldIds": [ - "84" + "124" ], - "createdAt": 1777282589092, + "createdAt": 1778772484798, "isPrimaryKey": true } ], - "color": "#ffe374", + "color": "#ff9f74", "isView": false, - "createdAt": 1777282589092, - "order": 1, - "diagramId": "yqwsqwccoj6v" + "createdAt": 1778772484798, + "order": 41, + "diagramId": "3taaalng0ut0" }, { - "id": "88", - "name": "media_sources", + "id": "132", + "name": "staff", "schema": "public", - "x": -680.0105470895069, - "y": 97.06852307742538, + "x": -1434.8828256841582, + "y": 424.7769062913411, "fields": [ { - "id": "89", + "id": "133", "name": "id", "type": { "id": "uuid", @@ -1117,7 +1669,183 @@ "createdAt": 1777282589093 }, { - "id": "90", + "id": "134", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "135", + "name": "image", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "136", + "name": "mal_id", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "137", + "name": "mal_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "138", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "139", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "140", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + } + ], + "indexes": [ + { + "id": "141", + "name": "", + "unique": true, + "fieldIds": [ + "133" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589093, + "order": 12, + "diagramId": "3taaalng0ut0" + }, + { + "id": "142", + "name": "user_rating_preferences", + "schema": "public", + "x": -1036.138591583759, + "y": -1328.817114710954, + "fields": [ + { + "id": "143", + "name": "user_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1778548671790 + }, + { + "id": "144", + "name": "rating_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778548699069 + }, + { + "id": "145", + "name": "state", + "type": { + "id": "user_preference_state", + "name": "user_preference_state" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778548704423 + } + ], + "indexes": [], + "color": "#4dee8a", + "isView": false, + "createdAt": 1778548671790, + "order": 32, + "diagramId": "3taaalng0ut0" + }, + { + "id": "146", + "name": "media_types", + "schema": "public", + "x": -678.8247906473255, + "y": -28.0163584990978, + "fields": [ + { + "id": "147", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "148", "name": "name", "type": { "id": "varchar", @@ -1132,11 +1860,11 @@ ], "indexes": [ { - "id": "91", + "id": "149", "name": "", "unique": true, "fieldIds": [ - "89" + "147" ], "createdAt": 1777282589093, "isPrimaryKey": true @@ -1145,31 +1873,19 @@ "color": "#ffe374", "isView": false, "createdAt": 1777282589093, - "order": 5, - "diagramId": "yqwsqwccoj6v" + "order": 4, + "diagramId": "3taaalng0ut0" }, { - "id": "92", - "name": "videos", + "id": "150", + "name": "user_watch_histories", "schema": "public", - "x": 613.6042418109826, - "y": 563.9662290869784, + "x": -335.9290422316319, + "y": -1189.7301850410581, "fields": [ { - "id": "93", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777282589094 - }, - { - "id": "94", - "name": "service_id", + "id": "151", + "name": "user_id", "type": { "id": "uuid", "name": "uuid" @@ -1177,76 +1893,11 @@ "primaryKey": false, "unique": false, "nullable": false, - "createdAt": 1777282589094 + "createdAt": 1778569467263 }, { - "id": "95", - "name": "video_code", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589094, - "characterMaximumLength": "255" - }, - { - "id": "96", - "name": "short_code", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094, - "characterMaximumLength": "255" - }, - { - "id": "97", - "name": "thumbnail_code", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094, - "characterMaximumLength": "255" - }, - { - "id": "98", - "name": "download_code", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094, - "characterMaximumLength": "255" - }, - { - "id": "99", - "name": "pending_upload", - "type": { - "id": "boolean", - "name": "boolean" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094, - "default": "true" - }, - { - "id": "100", - "name": "created_by", + "id": "152", + "name": "episode_id", "type": { "id": "uuid", "name": "uuid" @@ -1254,22 +1905,10 @@ "primaryKey": false, "unique": false, "nullable": false, - "createdAt": 1777282589094 + "createdAt": 1778569477336 }, { - "id": "101", - "name": "deleted_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094 - }, - { - "id": "102", + "id": "153", "name": "updated_at", "type": { "id": "timestamp", @@ -1278,10 +1917,212 @@ "primaryKey": false, "unique": false, "nullable": false, - "createdAt": 1777282589094 + "createdAt": 1778569489813 + } + ], + "indexes": [ + { + "id": "154", + "name": "index_1", + "unique": true, + "fieldIds": [ + "152", + "151" + ], + "createdAt": 1778732177200 + } + ], + "color": "#9ef07a", + "isView": false, + "createdAt": 1778569427313, + "width": 337, + "order": 34, + "diagramId": "3taaalng0ut0" + }, + { + "id": "155", + "name": "users", + "schema": "public", + "x": -333.07222985751173, + "y": -1009.2656254027879, + "fields": [ + { + "id": "156", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1778390635628 }, { - "id": "103", + "id": "157", + "name": "email", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1778391266880 + }, + { + "id": "158", + "name": "password", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778391484055, + "characterMaximumLength": "255" + }, + { + "id": "159", + "name": "username", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1778390646288, + "characterMaximumLength": "28" + }, + { + "id": "160", + "name": "fullname", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778390830584, + "characterMaximumLength": "32" + }, + { + "id": "161", + "name": "avatar", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778390861984, + "characterMaximumLength": "255" + }, + { + "id": "162", + "name": "bio", + "type": { + "id": "text", + "name": "text" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778390888222 + }, + { + "id": "163", + "name": "datebirth", + "type": { + "id": "date", + "name": "date" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778391007890 + }, + { + "id": "164", + "name": "role", + "type": { + "id": "user_role", + "name": "user_role" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778771211530 + }, + { + "id": "165", + "name": "sex", + "type": { + "id": "user_sex", + "name": "user_sex" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778391031530 + }, + { + "id": "166", + "name": "phone_number", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778391449319, + "characterMaximumLength": "15" + }, + { + "id": "167", + "name": "country", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778401621258 + }, + { + "id": "168", + "name": "auth_provider", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778515919288, + "characterMaximumLength": "64" + }, + { + "id": "169", + "name": "provider_token", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778515934284, + "characterMaximumLength": "255" + }, + { + "id": "170", "name": "created_at", "type": { "id": "timestamp", @@ -1290,138 +2131,221 @@ "primaryKey": false, "unique": false, "nullable": false, - "createdAt": 1777282589094 + "createdAt": 1778517117468, + "default": "now()" + }, + { + "id": "171", + "name": "verified_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778815129265 + }, + { + "id": "172", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778517127447 + }, + { + "id": "173", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778517147463 } ], "indexes": [ { - "id": "104", + "id": "174", "name": "", "unique": true, "fieldIds": [ - "93" + "156" ], - "createdAt": 1777282589094, + "createdAt": 1778390635628, + "isPrimaryKey": true + }, + { + "id": "175", + "name": "index_2", + "unique": true, + "fieldIds": [ + "159" + ], + "createdAt": 1778401234711 + }, + { + "id": "176", + "name": "index_3", + "unique": true, + "fieldIds": [ + "157" + ], + "createdAt": 1778401248519 + } + ], + "checkConstraints": [], + "color": "#4dee8a", + "isView": false, + "createdAt": 1778390635628, + "width": 337, + "order": 26, + "expanded": true, + "diagramId": "3taaalng0ut0" + }, + { + "id": "177", + "name": "video_submissions", + "schema": "public", + "x": 1034.3413138628948, + "y": 376.2391754093071, + "fields": [ + { + "id": "178", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777362610195 + }, + { + "id": "179", + "name": "video_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362624424 + }, + { + "id": "180", + "name": "created_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362635996, + "comments": "" + }, + { + "id": "181", + "name": "reviewed_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777362758238 + }, + { + "id": "182", + "name": "status", + "type": { + "id": "status_submission", + "name": "status_submission" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362700148, + "default": "pending", + "comments": "" + }, + { + "id": "183", + "name": "reviewed_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777363627973 + }, + { + "id": "184", + "name": "reason", + "type": { + "id": "text", + "name": "text" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777363674757 + }, + { + "id": "185", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777363686543, + "default": "now()" + } + ], + "indexes": [ + { + "id": "186", + "name": "", + "unique": true, + "fieldIds": [ + "178" + ], + "createdAt": 1777362610195, "isPrimaryKey": true } ], "color": "#ff9f74", "isView": false, - "createdAt": 1777282589094, - "order": 15, - "diagramId": "yqwsqwccoj6v" + "createdAt": 1777362610195, + "width": 337, + "order": 24, + "diagramId": "3taaalng0ut0" }, { - "id": "105", - "name": "user_country_preferences", - "x": -1035.3700148414782, - "y": -1151.086340953631, - "fields": [ - { - "id": "106", - "name": "user_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778548950226 - }, - { - "id": "107", - "name": "country_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": false, - "createdAt": 1778548914423 - }, - { - "id": "108", - "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", - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "109", - "name": "media_producers", - "schema": "public", - "x": 194.9363737010458, - "y": 104.92238147821836, - "fields": [ - { - "id": "110", - "name": "media_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777360177611 - }, - { - "id": "111", - "name": "producer_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": false, - "nullable": false, - "createdAt": 1777360209223 - } - ], - "indexes": [ - { - "id": "112", - "name": "", - "unique": true, - "fieldIds": [ - "110", - "111" - ], - "createdAt": 1777360177611, - "isPrimaryKey": true - } - ], - "color": "#ffe374", - "isView": false, - "createdAt": 1777360177611, - "order": 21, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "113", + "id": "187", "name": "media_age_ratings", "schema": "public", "x": -679.7484316247582, "y": 342.88283833657397, "fields": [ { - "id": "114", + "id": "188", "name": "id", "type": { "id": "uuid", @@ -1433,7 +2357,7 @@ "createdAt": 1777282589093 }, { - "id": "115", + "id": "189", "name": "name", "type": { "id": "varchar", @@ -1446,7 +2370,7 @@ "characterMaximumLength": "64" }, { - "id": "116", + "id": "190", "name": "min_age", "type": { "id": "smallint", @@ -1460,11 +2384,11 @@ ], "indexes": [ { - "id": "117", + "id": "191", "name": "", "unique": true, "fieldIds": [ - "114" + "188" ], "createdAt": 1777282589093, "isPrimaryKey": true @@ -1474,3079 +2398,17 @@ "isView": false, "createdAt": 1777282589093, "order": 7, - "diagramId": "yqwsqwccoj6v" + "diagramId": "3taaalng0ut0" }, { - "id": "118", - "name": "comment_audit_logs", - "x": -1031.768269593756, - "y": -322.47738647771854, - "fields": [ - { - "id": "119", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": true, - "createdAt": 1778772275091 - }, - { - "id": "120", - "name": "comment_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778772293834 - }, - { - "id": "121", - "name": "performed_by", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778772315274 - }, - { - "id": "122", - "name": "action", - "type": { - "id": "audit_action", - "name": "audit_action" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778772326253 - }, - { - "id": "123", - "name": "created_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778772335038 - } - ], - "indexes": [ - { - "id": "124", - "name": "", - "fieldIds": [ - "119" - ], - "unique": true, - "isPrimaryKey": true, - "createdAt": 1778772275091 - } - ], - "color": "#b067e9", - "createdAt": 1778772275091, - "isView": false, - "order": 40, - "schema": "public", - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "125", - "name": "media_characters", - "schema": "public", - "x": -679.8245105809615, - "y": 896.9123102253633, - "fields": [ - { - "id": "126", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777282589093 - }, - { - "id": "127", - "name": "role", - "type": { - "id": "enum", - "name": "enum" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589093, - "comments": "main, supporting" - }, - { - "id": "128", - "name": "characters", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589093 - }, - { - "id": "129", - "name": "voice_actor", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589093 - } - ], - "indexes": [ - { - "id": "130", - "name": "", - "unique": true, - "fieldIds": [ - "126" - ], - "createdAt": 1777282589093, - "isPrimaryKey": true - } - ], - "color": "#ffe374", - "isView": false, - "createdAt": 1777282589093, - "order": 8, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "131", - "name": "provisioned_users", - "x": 204.8991215430349, - "y": -1369.625291260797, - "fields": [ - { - "id": "132", - "name": "provisioned_by", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": false, - "createdAt": 1778517368377 - }, - { - "id": "133", - "name": "provisioned_to", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778517463769 - }, - { - "id": "134", - "name": "provisioned_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778517476998 - }, - { - "id": "135", - "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": "136", - "name": "collection_members", - "x": -338.05774312036385, - "y": -1466.6668409654785, - "fields": [ - { - "id": "137", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": true, - "createdAt": 1778766471107 - }, - { - "id": "138", - "name": "collection_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778766493931 - }, - { - "id": "139", - "name": "user_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778766580515 - }, - { - "id": "140", - "name": "access_level", - "type": { - "id": "collection_access_level", - "name": "collection_access_level" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778766832324 - }, - { - "id": "141", - "name": "invited_by", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778766846050 - }, - { - "id": "142", - "name": "joined_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778766841216 - } - ], - "indexes": [ - { - "id": "143", - "name": "", - "fieldIds": [ - "137" - ], - "unique": true, - "isPrimaryKey": true, - "createdAt": 1778766471107 - } - ], - "color": "#9ef07a", - "createdAt": 1778766471107, - "isView": false, - "order": 38, - "schema": "public", - "width": 337, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "144", - "name": "countries", - "x": -675.4825871206289, - "y": -936.5527418709639, - "fields": [ - { - "id": "145", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": true, - "createdAt": 1778401101216 - }, - { - "id": "146", - "name": "name", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778401175441, - "characterMaximumLength": "155" - }, - { - "id": "147", - "name": "slug", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": true, - "nullable": false, - "primaryKey": false, - "createdAt": 1778401182473, - "characterMaximumLength": "165" - }, - { - "id": "148", - "name": "code", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": true, - "nullable": false, - "primaryKey": false, - "createdAt": 1778401186425, - "characterMaximumLength": "3" - }, - { - "id": "149", - "name": "flag", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778401191401, - "characterMaximumLength": "255" - }, - { - "id": "150", - "name": "banner", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778401286123, - "characterMaximumLength": "255" - } - ], - "indexes": [ - { - "id": "151", - "name": "", - "fieldIds": [ - "145" - ], - "unique": true, - "isPrimaryKey": true, - "createdAt": 1778401101216 - } - ], - "color": "#b067e9", - "createdAt": 1778401101216, - "isView": false, - "order": 27, - "schema": "public", - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "152", - "name": "media_explicit_genres", - "schema": "public", - "x": -681.3338818918861, - "y": 628.1224828360978, - "fields": [ - { - "id": "153", - "name": "media_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777283776082 - }, - { - "id": "154", - "name": "genre_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": false, - "nullable": false, - "createdAt": 1777283808941 - } - ], - "indexes": [ - { - "id": "155", - "name": "", - "unique": true, - "fieldIds": [ - "153", - "154" - ], - "createdAt": 1777283776082, - "isPrimaryKey": true - } - ], - "color": "#ffe374", - "isView": false, - "createdAt": 1777283776082, - "comments": "composite primary key = media_id + genre_id ", - "order": 19, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "156", - "name": "media_external_links", - "schema": "public", - "x": 194.5066892978357, - "y": -264.72537027522213, - "fields": [ - { - "id": "157", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777282589093 - }, - { - "id": "158", - "name": "media_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093 - }, - { - "id": "159", - "name": "name", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093, - "characterMaximumLength": "64" - }, - { - "id": "160", - "name": "url", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093, - "characterMaximumLength": "255" - } - ], - "indexes": [ - { - "id": "161", - "name": "", - "unique": true, - "fieldIds": [ - "157" - ], - "createdAt": 1777282589093, - "isPrimaryKey": true - } - ], - "color": "#ffe374", - "isView": false, - "createdAt": 1777282589093, - "order": 3, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "162", - "name": "media_statuses", - "schema": "public", - "x": -679.4669719043579, - "y": 219.3548090436041, - "fields": [ - { - "id": "163", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777282589093 - }, - { - "id": "164", - "name": "name", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": true, - "nullable": false, - "createdAt": 1777282589093, - "characterMaximumLength": "64" - } - ], - "indexes": [ - { - "id": "165", - "name": "", - "unique": true, - "fieldIds": [ - "163" - ], - "createdAt": 1777282589093, - "isPrimaryKey": true - } - ], - "color": "#ffe374", - "isView": false, - "createdAt": 1777282589093, - "order": 6, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "166", - "name": "producers", - "schema": "public", - "x": 614.2665328827337, - "y": 137.7660218436568, - "fields": [ - { - "id": "167", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777282589093 - }, - { - "id": "168", - "name": "mal_id", - "type": { - "id": "int", - "name": "int" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589093 - }, - { - "id": "169", - "name": "type", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589093, - "characterMaximumLength": "24" - }, - { - "id": "170", - "name": "name", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589094, - "characterMaximumLength": "155" - }, - { - "id": "171", - "name": "url", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094, - "characterMaximumLength": "255" - }, - { - "id": "172", - "name": "created_by", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589094 - }, - { - "id": "173", - "name": "deleted_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094 - }, - { - "id": "174", - "name": "updated_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589094 - }, - { - "id": "175", - "name": "created_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589094 - } - ], - "indexes": [ - { - "id": "176", - "name": "", - "unique": true, - "fieldIds": [ - "167" - ], - "createdAt": 1777282589094, - "isPrimaryKey": true - } - ], - "color": "#ff9f74", - "isView": false, - "createdAt": 1777282589094, - "order": 13, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "177", - "name": "user_watch_histories", - "x": -335.9290422316319, - "y": -1189.7301850410581, - "fields": [ - { - "id": "178", - "name": "user_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778569467263 - }, - { - "id": "179", - "name": "episode_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778569477336 - }, - { - "id": "180", - "name": "updated_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778569489813 - } - ], - "indexes": [ - { - "id": "181", - "name": "index_1", - "fieldIds": [ - "179", - "178" - ], - "unique": true, - "createdAt": 1778732177200 - } - ], - "color": "#9ef07a", - "createdAt": 1778569427313, - "isView": false, - "order": 34, - "schema": "public", - "width": 337, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "182", - "name": "user_preferences", - "x": -675.7144111335546, - "y": -1493.2312805453928, - "fields": [ - { - "id": "183", - "name": "user_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": true, - "createdAt": 1778517633815 - }, - { - "id": "184", - "name": "character_as_partner", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778518390023 - }, - { - "id": "185", - "name": "comment_picture", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778551730755, - "characterMaximumLength": "255" - }, - { - "id": "186", - "name": "enable_watch_history", - "type": { - "id": "boolean", - "name": "boolean" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778548806729, - "default": "true" - }, - { - "id": "187", - "name": "enable_search_history", - "type": { - "id": "boolean", - "name": "boolean" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778548790804, - "default": "false" - }, - { - "id": "188", - "name": "is_private_account", - "type": { - "id": "boolean", - "name": "boolean" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778518216561, - "default": "false" - }, - { - "id": "189", - "name": "can_message_me", - "type": { - "id": "boolean", - "name": "boolean" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778518177601, - "default": "true" - }, - { - "id": "190", - "name": "publish_birthday", - "type": { - "id": "boolean", - "name": "boolean" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778518242632, - "default": "false" - }, - { - "id": "191", - "name": "publish_email", - "type": { - "id": "boolean", - "name": "boolean" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778518265111, - "default": "false" - }, - { - "id": "192", - "name": "publish_phone_number", - "type": { - "id": "boolean", - "name": "boolean" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778518273456, - "default": "false" - }, - { - "id": "193", - "name": "publish_country", - "type": { - "id": "boolean", - "name": "boolean" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778817885185, - "default": "false" - }, - { - "id": "194", - "name": "publish_partner", - "type": { - "id": "boolean", - "name": "boolean" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778518357114, - "default": "true" - }, - { - "id": "195", - "name": "subscribe_to_newsletter", - "type": { - "id": "boolean", - "name": "boolean" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778808434279, - "default": "true" - }, - { - "id": "196", - "name": "enable_security_alerts", - "type": { - "id": "boolean", - "name": "boolean" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778808466008, - "default": "true" - } - ], - "indexes": [ - { - "id": "197", - "name": "", - "fieldIds": [ - "183" - ], - "unique": true, - "isPrimaryKey": true, - "createdAt": 1778517633815 - } - ], - "color": "#4dee8a", - "createdAt": 1778517633815, - "isView": false, - "order": 31, - "schema": "public", - "expanded": true, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "198", - "name": "user_genre_preferences", - "x": -1033.5708487432953, - "y": -1502.401339834144, - "fields": [ - { - "id": "199", - "name": "user_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": false, - "createdAt": 1778548513047 - }, - { - "id": "200", - "name": "genre_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778548529915 - }, - { - "id": "201", - "name": "state", - "type": { - "id": "user_preference_state", - "name": "user_preference_state" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778548535529 - } - ], - "indexes": [ - { - "id": "202", - "name": "index_1", - "fieldIds": [ - "199", - "200" - ], - "unique": true, - "createdAt": 1778548614328 - } - ], - "color": "#4dee8a", - "createdAt": 1778548513047, - "isView": false, - "order": 31, - "schema": "public", - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "203", - "name": "media_collections", - "x": 197.36608531341386, - "y": -468.796634019804, - "fields": [ - { - "id": "204", - "name": "collection_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": false, - "createdAt": 1778733152986 - }, - { - "id": "205", - "name": "media_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778733195744 - }, - { - "id": "206", - "name": "added_by", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778733169676 - }, - { - "id": "207", - "name": "added_at", - "type": { - "id": "bigint", - "name": "bigint" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778733189272 - } - ], - "indexes": [ - { - "id": "208", - "name": "index_1", - "fieldIds": [ - "204", - "205" - ], - "unique": true, - "createdAt": 1778733335908 - } - ], - "color": "#ff9f74", - "createdAt": 1778733152986, - "isView": false, - "order": 36, - "schema": "public", - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "209", - "name": "comments", - "x": -1035.4972528190797, - "y": -21.831519473281823, - "fields": [ - { - "id": "210", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": true, - "createdAt": 1778772484798 - }, - { - "id": "211", - "name": "user_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778772536237 - }, - { - "id": "212", - "name": "episode_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778772542751 - }, - { - "id": "213", - "name": "content", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778772548786, - "characterMaximumLength": "255" - }, - { - "id": "214", - "name": "created_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778777149915 - }, - { - "id": "215", - "name": "updated_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778777198204 - }, - { - "id": "216", - "name": "deleted_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778777213469 - } - ], - "indexes": [ - { - "id": "217", - "name": "", - "fieldIds": [ - "210" - ], - "unique": true, - "isPrimaryKey": true, - "createdAt": 1778772484798 - } - ], - "color": "#ff9f74", - "createdAt": 1778772484798, - "isView": false, - "order": 41, - "schema": "public", - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "218", - "name": "user_oauth_accounts", - "x": 200.04156829298174, - "y": -928.8832495975014, - "fields": [ - { - "id": "219", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": true, - "createdAt": 1778516299633 - }, - { - "id": "220", - "name": "user_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778516366928 - }, - { - "id": "221", - "name": "provider_name", - "type": { - "id": "oauth_provider", - "name": "oauth_provider" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778822365657 - }, - { - "id": "222", - "name": "provider_sub", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778516403942, - "characterMaximumLength": "255" - }, - { - "id": "223", - "name": "provider_email", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778822096844, - "characterMaximumLength": "255", - "default": null - }, - { - "id": "224", - "name": "access_token", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778516373206, - "characterMaximumLength": "255", - "default": null - }, - { - "id": "225", - "name": "refresh_token", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778822164872, - "characterMaximumLength": "255" - }, - { - "id": "226", - "name": "last_login", - "type": { - "id": "timestamptz", - "name": "timestamptz" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778516872367 - }, - { - "id": "227", - "name": "expires_at", - "type": { - "id": "timestamptz", - "name": "timestamptz" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778822177415 - }, - { - "id": "228", - "name": "created_at", - "type": { - "id": "timestamptz", - "name": "timestamptz" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778822183677 - }, - { - "id": "229", - "name": "updated_at", - "type": { - "id": "timestamptz", - "name": "timestamptz" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778822185523 - } - ], - "indexes": [ - { - "id": "230", - "name": "", - "fieldIds": [ - "219" - ], - "unique": true, - "isPrimaryKey": true, - "createdAt": 1778516299633 - }, - { - "id": "231", - "name": "index_2", - "fieldIds": [ - "220", - "221" - ], - "unique": true, - "createdAt": 1778516903425 - } - ], - "color": "#4dee8a", - "createdAt": 1778516299633, - "isView": false, - "order": 29, - "schema": "public", - "diagramId": "yqwsqwccoj6v", - "expanded": true - }, - { - "id": "232", - "name": "staff", - "schema": "public", - "x": -1434.8828256841582, - "y": 424.7769062913411, - "fields": [ - { - "id": "233", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777282589093 - }, - { - "id": "234", - "name": "name", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589093, - "characterMaximumLength": "255" - }, - { - "id": "235", - "name": "image", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093, - "characterMaximumLength": "255" - }, - { - "id": "236", - "name": "mal_id", - "type": { - "id": "int", - "name": "int" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093 - }, - { - "id": "237", - "name": "mal_url", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093, - "characterMaximumLength": "255" - }, - { - "id": "238", - "name": "deleted_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093 - }, - { - "id": "239", - "name": "updated_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589093 - }, - { - "id": "240", - "name": "created_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589093 - } - ], - "indexes": [ - { - "id": "241", - "name": "", - "unique": true, - "fieldIds": [ - "233" - ], - "createdAt": 1777282589093, - "isPrimaryKey": true - } - ], - "color": "#ff9f74", - "isView": false, - "createdAt": 1777282589093, - "order": 12, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "242", - "name": "home_media_banner", - "x": -1034.714934672103, - "y": -969.0938770634809, - "fields": [ - { - "id": "243", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": true, - "createdAt": 1778771594518 - }, - { - "id": "244", - "name": "media_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778771625245 - }, - { - "id": "245", - "name": "created_by", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778771632111 - }, - { - "id": "246", - "name": "priority", - "type": { - "id": "smallint", - "name": "smallint" - }, - "unique": true, - "nullable": true, - "primaryKey": false, - "createdAt": 1778771638786 - }, - { - "id": "247", - "name": "start_show", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778771679920 - }, - { - "id": "248", - "name": "end_show", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778771687135 - }, - { - "id": "249", - "name": "created_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778771693471 - } - ], - "indexes": [ - { - "id": "250", - "name": "", - "fieldIds": [ - "243" - ], - "unique": true, - "isPrimaryKey": true, - "createdAt": 1778771594518 - } - ], - "color": "#b067e9", - "createdAt": 1778771594518, - "isView": false, - "order": 39, - "schema": "public", - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "251", - "name": "users", - "x": -333.07222985751173, - "y": -1009.2656254027879, - "fields": [ - { - "id": "252", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": true, - "createdAt": 1778390635628 - }, - { - "id": "253", - "name": "email", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": true, - "nullable": false, - "primaryKey": false, - "createdAt": 1778391266880 - }, - { - "id": "254", - "name": "password", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778391484055, - "characterMaximumLength": "255" - }, - { - "id": "255", - "name": "username", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": true, - "nullable": false, - "primaryKey": false, - "createdAt": 1778390646288, - "characterMaximumLength": "28" - }, - { - "id": "256", - "name": "fullname", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778390830584, - "characterMaximumLength": "32" - }, - { - "id": "257", - "name": "avatar", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778390861984, - "characterMaximumLength": "255" - }, - { - "id": "258", - "name": "bio", - "type": { - "id": "text", - "name": "text" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778390888222 - }, - { - "id": "259", - "name": "datebirth", - "type": { - "id": "date", - "name": "date" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778391007890 - }, - { - "id": "260", - "name": "role", - "type": { - "id": "user_role", - "name": "user_role" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778771211530 - }, - { - "id": "261", - "name": "sex", - "type": { - "id": "user_sex", - "name": "user_sex" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778391031530 - }, - { - "id": "262", - "name": "phone_number", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778391449319, - "characterMaximumLength": "15" - }, - { - "id": "263", - "name": "country", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778401621258 - }, - { - "id": "264", - "name": "auth_provider", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778515919288, - "characterMaximumLength": "64" - }, - { - "id": "265", - "name": "provider_token", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778515934284, - "characterMaximumLength": "255" - }, - { - "id": "266", - "name": "created_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778517117468, - "default": "now()" - }, - { - "id": "267", - "name": "verified_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778815129265 - }, - { - "id": "268", - "name": "updated_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778517127447 - }, - { - "id": "269", - "name": "deleted_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778517147463 - } - ], - "indexes": [ - { - "id": "270", - "name": "", - "fieldIds": [ - "252" - ], - "unique": true, - "isPrimaryKey": true, - "createdAt": 1778390635628 - }, - { - "id": "271", - "name": "index_2", - "fieldIds": [ - "255" - ], - "unique": true, - "createdAt": 1778401234711 - }, - { - "id": "272", - "name": "index_3", - "fieldIds": [ - "253" - ], - "unique": true, - "createdAt": 1778401248519 - } - ], - "color": "#4dee8a", - "createdAt": 1778390635628, - "isView": false, - "order": 26, - "schema": "public", - "expanded": true, - "checkConstraints": [], - "width": 337, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "273", - "name": "media_studios", - "schema": "public", - "x": 194.57420294478976, - "y": 402.07246285824783, - "fields": [ - { - "id": "274", - "name": "media_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777360514222 - }, - { - "id": "275", - "name": "producer_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": false, - "nullable": false, - "createdAt": 1777360544975 - } - ], - "indexes": [ - { - "id": "276", - "name": "", - "unique": true, - "fieldIds": [ - "274", - "275" - ], - "createdAt": 1777360514222, - "isPrimaryKey": true - } - ], - "color": "#ffe374", - "isView": false, - "createdAt": 1777360514222, - "order": 23, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "277", - "name": "media_licencors", - "schema": "public", - "x": 194.15644602007046, - "y": 251.9575649519487, - "fields": [ - { - "id": "278", - "name": "media_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777360331507 - }, - { - "id": "279", - "name": "producer_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": false, - "nullable": false, - "createdAt": 1777360363236 - } - ], - "indexes": [ - { - "id": "280", - "name": "", - "unique": true, - "fieldIds": [ - "278", - "279" - ], - "createdAt": 1777360331507, - "isPrimaryKey": true - } - ], - "color": "#ffe374", - "isView": false, - "createdAt": 1777360331507, - "order": 22, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "281", - "name": "comment_reports", - "x": -1032.5934799775514, - "y": -655.2659179217417, - "fields": [ - { - "id": "282", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": false, - "createdAt": 1778777460892 - }, - { - "id": "283", - "name": "reporter_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778777475869 - }, - { - "id": "284", - "name": "comment_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778777483534 - }, - { - "id": "285", - "name": "title", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778777515056, - "characterMaximumLength": "115" - }, - { - "id": "286", - "name": "status", - "type": { - "id": "status_submission", - "name": "status_submission" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778777836090 - }, - { - "id": "287", - "name": "description", - "type": { - "id": "text", - "name": "text" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778777519944 - }, - { - "id": "288", - "name": "reported_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778777537682 - }, - { - "id": "289", - "name": "closed_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778777545373 - } - ], - "indexes": [], - "color": "#b067e9", - "createdAt": 1778777460892, - "isView": false, - "order": 42, - "schema": "public", - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "290", - "name": "genres", - "schema": "public", - "x": -1033.3879847948956, - "y": 289.93770102274635, - "fields": [ - { - "id": "291", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777282589094 - }, - { - "id": "292", - "name": "mal_id", - "type": { - "id": "smallint", - "name": "smallint" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094 - }, - { - "id": "293", - "name": "type", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589094, - "characterMaximumLength": "16" - }, - { - "id": "294", - "name": "name", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589094, - "characterMaximumLength": "32" - }, - { - "id": "295", - "name": "url", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094, - "characterMaximumLength": "155" - } - ], - "indexes": [ - { - "id": "296", - "name": "", - "unique": true, - "fieldIds": [ - "291" - ], - "createdAt": 1777282589094, - "isPrimaryKey": true - } - ], - "color": "#ff9f74", - "isView": false, - "createdAt": 1777282589094, - "order": 14, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "297", - "name": "collections", - "x": 206.14708211340167, - "y": -1637.469796851602, - "fields": [ - { - "id": "298", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": true, - "createdAt": 1778733394970 - }, - { - "id": "299", - "name": "name", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778733410192, - "characterMaximumLength": "64", - "default": null - }, - { - "id": "300", - "name": "cover_url", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778733428870, - "characterMaximumLength": "255" - }, - { - "id": "301", - "name": "privacy_level", - "type": { - "id": "privacy_level", - "name": "privacy_level" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778766528943 - }, - { - "id": "302", - "name": "created_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778733453130 - }, - { - "id": "303", - "name": "updated_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778733477620 - } - ], - "indexes": [ - { - "id": "304", - "name": "", - "fieldIds": [ - "298" - ], - "unique": true, - "isPrimaryKey": true, - "createdAt": 1778733394970 - } - ], - "color": "#9ef07a", - "createdAt": 1778733394970, - "isView": false, - "order": 37, - "schema": "public", - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "305", - "name": "voice_actors", - "schema": "public", - "x": -1038.3471892955995, - "y": 525.1907371208936, - "fields": [ - { - "id": "306", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777282589093 - }, - { - "id": "307", - "name": "language", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093, - "characterMaximumLength": "115" - }, - { - "id": "308", - "name": "actor_staff", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589093 - } - ], - "indexes": [ - { - "id": "309", - "name": "", - "unique": true, - "fieldIds": [ - "306" - ], - "createdAt": 1777282589093, - "isPrimaryKey": true - } - ], - "color": "#ff9f74", - "isView": false, - "createdAt": 1777282589093, - "order": 11, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "310", - "name": "video_submissions", - "x": 1034.3413138628948, - "y": 376.2391754093071, - "fields": [ - { - "id": "311", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777362610195 - }, - { - "id": "312", - "name": "video_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777362624424 - }, - { - "id": "313", - "name": "created_by", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777362635996, - "comments": "" - }, - { - "id": "314", - "name": "reviewed_by", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777362758238 - }, - { - "id": "315", - "name": "status", - "type": { - "id": "status_submission", - "name": "status_submission" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777362700148, - "default": "pending", - "comments": "" - }, - { - "id": "316", - "name": "reviewed_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777363627973 - }, - { - "id": "317", - "name": "reason", - "type": { - "id": "text", - "name": "text" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777363674757 - }, - { - "id": "318", - "name": "created_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777363686543, - "default": "now()" - } - ], - "indexes": [ - { - "id": "319", - "name": "", - "unique": true, - "fieldIds": [ - "311" - ], - "createdAt": 1777362610195, - "isPrimaryKey": true - } - ], - "color": "#ff9f74", - "createdAt": 1777362610195, - "isView": false, - "order": 24, - "schema": "public", - "width": 337, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "320", - "name": "media_genres", - "schema": "public", - "x": -680.2926238134676, - "y": 498.7845736528544, - "fields": [ - { - "id": "321", - "name": "media_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": true, - "nullable": false, - "createdAt": 1777283473368 - }, - { - "id": "322", - "name": "genre_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": false, - "nullable": false, - "createdAt": 1777283550230 - } - ], - "indexes": [ - { - "id": "323", - "name": "", - "unique": true, - "fieldIds": [ - "322" - ], - "createdAt": 1777283473368, - "isPrimaryKey": true - }, - { - "id": "324", - "name": "index_1", - "fieldIds": [ - "321", - "322" - ], - "unique": true, - "createdAt": 1778570545534 - } - ], - "checkConstraints": [], - "color": "#ffe374", - "isView": false, - "createdAt": 1777283473368, - "comments": "composite primary key = media_id + genre_id ", - "order": 18, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "325", - "name": "video_services", - "schema": "public", - "x": 78.02893671625938, - "y": 1219.199725842667, - "fields": [ - { - "id": "326", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777282589094 - }, - { - "id": "327", - "name": "name", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589094, - "characterMaximumLength": "155" - }, - { - "id": "328", - "name": "resolution", - "type": { - "id": "smallint", - "name": "smallint" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589094 - }, - { - "id": "329", - "name": "domain", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589094, - "characterMaximumLength": "255" - }, - { - "id": "330", - "name": "image_url", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094, - "characterMaximumLength": "255" - }, - { - "id": "331", - "name": "hex_color", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094, - "characterMaximumLength": "10" - }, - { - "id": "332", - "name": "endpoint_video", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589094, - "characterMaximumLength": "255" - }, - { - "id": "333", - "name": "endpoint_short", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094, - "characterMaximumLength": "255" - }, - { - "id": "334", - "name": "endpoint_image", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094, - "characterMaximumLength": "255" - }, - { - "id": "335", - "name": "endpoint_download", - "type": { - "id": "varchar", - "name": "varchar" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094, - "characterMaximumLength": "255" - }, - { - "id": "336", - "name": "created_by", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589094 - }, - { - "id": "337", - "name": "deleted_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777282589094 - }, - { - "id": "338", - "name": "updated_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589094 - }, - { - "id": "339", - "name": "created_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777282589094 - } - ], - "indexes": [ - { - "id": "340", - "name": "", - "unique": true, - "fieldIds": [ - "326" - ], - "createdAt": 1777282589094, - "isPrimaryKey": true - }, - { - "id": "341", - "name": "idx_video_services_name_resolution", - "unique": true, - "fieldIds": [ - "327", - "328" - ], - "createdAt": 1777282589094 - } - ], - "color": "#ff9f74", - "isView": false, - "createdAt": 1777282589094, - "width": 337, - "order": 16, - "expanded": true, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "342", - "name": "media_submissions", - "schema": "public", - "x": -677.2819917810897, - "y": -656.6674640748546, - "fields": [ - { - "id": "343", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777362610195 - }, - { - "id": "344", - "name": "media_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777362624424 - }, - { - "id": "345", - "name": "created_by", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777362635996, - "comments": "" - }, - { - "id": "346", - "name": "status", - "type": { - "id": "status_submission", - "name": "status_submission" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777362700148, - "comments": "" - }, - { - "id": "347", - "name": "reviewed_by", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777362758238 - }, - { - "id": "348", - "name": "reviewed_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777363627973 - }, - { - "id": "349", - "name": "reason", - "type": { - "id": "text", - "name": "text" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777363674757 - }, - { - "id": "350", - "name": "created_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777363686543, - "default": "now()" - } - ], - "indexes": [ - { - "id": "351", - "name": "", - "unique": true, - "fieldIds": [ - "343" - ], - "createdAt": 1777362610195, - "isPrimaryKey": true - } - ], - "color": "#ffe374", - "isView": false, - "createdAt": 1777362610195, - "order": 24, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "352", - "name": "video_service_submissions", - "schema": "public", - "x": -371.1847878375677, - "y": 1294.289208047582, - "fields": [ - { - "id": "353", - "name": "id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": true, - "unique": true, - "nullable": false, - "createdAt": 1777362610195 - }, - { - "id": "354", - "name": "video_service_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777362624424 - }, - { - "id": "355", - "name": "created_by", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777362635996, - "comments": "" - }, - { - "id": "356", - "name": "status", - "type": { - "id": "status_submission", - "name": "status_submission" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777362700148, - "default": "pending", - "comments": "" - }, - { - "id": "357", - "name": "reviewed_by", - "type": { - "id": "uuid", - "name": "uuid" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777362758238 - }, - { - "id": "358", - "name": "reviewed_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777363627973 - }, - { - "id": "359", - "name": "reason", - "type": { - "id": "text", - "name": "text" - }, - "primaryKey": false, - "unique": false, - "nullable": true, - "createdAt": 1777363674757 - }, - { - "id": "360", - "name": "created_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "primaryKey": false, - "unique": false, - "nullable": false, - "createdAt": 1777363686543, - "default": "now()" - } - ], - "indexes": [ - { - "id": "361", - "name": "", - "unique": true, - "fieldIds": [ - "353" - ], - "createdAt": 1777362610195, - "isPrimaryKey": true - } - ], - "color": "#ff9f74", - "isView": false, - "createdAt": 1777362610195, - "width": 337, - "order": 24, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "362", + "id": "192", "name": "media_trailers", "schema": "public", "x": -679.0151464808563, "y": -319.10973511128714, "fields": [ { - "id": "363", + "id": "193", "name": "id", "type": { "id": "uuid", @@ -4558,7 +2420,7 @@ "createdAt": 1777282589092 }, { - "id": "364", + "id": "194", "name": "url", "type": { "id": "varchar", @@ -4571,7 +2433,7 @@ "characterMaximumLength": "255" }, { - "id": "365", + "id": "195", "name": "embed_url", "type": { "id": "varchar", @@ -4584,7 +2446,7 @@ "characterMaximumLength": "255" }, { - "id": "366", + "id": "196", "name": "small_image_url", "type": { "id": "varchar", @@ -4597,7 +2459,7 @@ "characterMaximumLength": "255" }, { - "id": "367", + "id": "197", "name": "medium_image_url", "type": { "id": "varchar", @@ -4610,7 +2472,7 @@ "characterMaximumLength": "255" }, { - "id": "368", + "id": "198", "name": "large_image_url", "type": { "id": "varchar", @@ -4623,7 +2485,7 @@ "characterMaximumLength": "255" }, { - "id": "369", + "id": "199", "name": "maximum_image_url", "type": { "id": "varchar", @@ -4638,11 +2500,11 @@ ], "indexes": [ { - "id": "370", + "id": "200", "name": "", "unique": true, "fieldIds": [ - "363" + "193" ], "createdAt": 1777282589093, "isPrimaryKey": true @@ -4652,17 +2514,375 @@ "isView": false, "createdAt": 1777282589093, "order": 2, - "diagramId": "yqwsqwccoj6v" + "diagramId": "3taaalng0ut0" }, { - "id": "371", - "name": "media_types", + "id": "201", + "name": "collection_members", "schema": "public", - "x": -678.8247906473255, - "y": -28.0163584990978, + "x": -338.05774312036385, + "y": -1466.6668409654785, "fields": [ { - "id": "372", + "id": "202", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1778766471107 + }, + { + "id": "203", + "name": "collection_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778766493931 + }, + { + "id": "204", + "name": "user_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778766580515 + }, + { + "id": "205", + "name": "access_level", + "type": { + "id": "collection_access_level", + "name": "collection_access_level" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778766832324 + }, + { + "id": "206", + "name": "invited_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778766846050 + }, + { + "id": "207", + "name": "joined_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778766841216 + } + ], + "indexes": [ + { + "id": "208", + "name": "", + "unique": true, + "fieldIds": [ + "202" + ], + "createdAt": 1778766471107, + "isPrimaryKey": true + } + ], + "color": "#9ef07a", + "isView": false, + "createdAt": 1778766471107, + "width": 337, + "order": 38, + "diagramId": "3taaalng0ut0" + }, + { + "id": "209", + "name": "media_collections", + "schema": "public", + "x": 197.36608531341386, + "y": -468.796634019804, + "fields": [ + { + "id": "210", + "name": "collection_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1778733152986 + }, + { + "id": "211", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778733195744 + }, + { + "id": "212", + "name": "added_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778733169676 + }, + { + "id": "213", + "name": "added_at", + "type": { + "id": "bigint", + "name": "bigint" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778733189272 + } + ], + "indexes": [ + { + "id": "214", + "name": "index_1", + "unique": true, + "fieldIds": [ + "210", + "211" + ], + "createdAt": 1778733335908 + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1778733152986, + "order": 36, + "diagramId": "3taaalng0ut0" + }, + { + "id": "215", + "name": "user_follows", + "schema": "public", + "x": 200.64283100307347, + "y": -1141.2347344393859, + "fields": [ + { + "id": "216", + "name": "follower_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1778401701334 + }, + { + "id": "217", + "name": "following_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778401722682 + }, + { + "id": "218", + "name": "followed_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778401734762 + } + ], + "indexes": [ + { + "id": "219", + "name": "index_1", + "unique": true, + "fieldIds": [ + "217", + "216" + ], + "createdAt": 1778401874053 + } + ], + "checkConstraints": [ + { + "id": "jx7knny2zwx9u3pt9y2eowuoc", + "expression": "follower_id <> following_id", + "createdAt": 1778402111741 + } + ], + "color": "#9ef07a", + "isView": false, + "createdAt": 1778401701334, + "width": 224, + "order": 28, + "diagramId": "3taaalng0ut0" + }, + { + "id": "220", + "name": "media_relations", + "schema": "public", + "x": 194.39903094287618, + "y": -61.06914750749248, + "fields": [ + { + "id": "221", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589092 + }, + { + "id": "222", + "name": "relation", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092, + "characterMaximumLength": "16" + }, + { + "id": "223", + "name": "target_media", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589092 + } + ], + "indexes": [ + { + "id": "224", + "name": "", + "unique": true, + "fieldIds": [ + "221" + ], + "createdAt": 1777282589092, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777282589092, + "order": 1, + "diagramId": "3taaalng0ut0" + }, + { + "id": "225", + "name": "media_explicit_genres", + "schema": "public", + "x": -681.3338818918861, + "y": 628.1224828360978, + "fields": [ + { + "id": "226", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777283776082 + }, + { + "id": "227", + "name": "genre_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": false, + "nullable": false, + "createdAt": 1777283808941 + } + ], + "indexes": [ + { + "id": "228", + "name": "", + "unique": true, + "fieldIds": [ + "226", + "227" + ], + "createdAt": 1777283776082, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777283776082, + "comments": "composite primary key = media_id + genre_id ", + "order": 19, + "diagramId": "3taaalng0ut0" + }, + { + "id": "229", + "name": "media_statuses", + "schema": "public", + "x": -679.4669719043579, + "y": 219.3548090436041, + "fields": [ + { + "id": "230", "name": "id", "type": { "id": "uuid", @@ -4674,7 +2894,1762 @@ "createdAt": 1777282589093 }, { - "id": "373", + "id": "231", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1777282589093, + "characterMaximumLength": "64" + } + ], + "indexes": [ + { + "id": "232", + "name": "", + "unique": true, + "fieldIds": [ + "230" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777282589093, + "order": 6, + "diagramId": "3taaalng0ut0" + }, + { + "id": "233", + "name": "collections", + "schema": "public", + "x": 206.14708211340167, + "y": -1637.469796851602, + "fields": [ + { + "id": "234", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1778733394970 + }, + { + "id": "235", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778733410192, + "characterMaximumLength": "64", + "default": null + }, + { + "id": "236", + "name": "cover_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778733428870, + "characterMaximumLength": "255" + }, + { + "id": "237", + "name": "privacy_level", + "type": { + "id": "privacy_level", + "name": "privacy_level" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778766528943 + }, + { + "id": "238", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778733453130 + }, + { + "id": "239", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778733477620 + } + ], + "indexes": [ + { + "id": "240", + "name": "", + "unique": true, + "fieldIds": [ + "234" + ], + "createdAt": 1778733394970, + "isPrimaryKey": true + } + ], + "color": "#9ef07a", + "isView": false, + "createdAt": 1778733394970, + "order": 37, + "diagramId": "3taaalng0ut0" + }, + { + "id": "241", + "name": "video_services", + "schema": "public", + "x": 78.02893671625938, + "y": 1219.199725842667, + "fields": [ + { + "id": "242", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "243", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094, + "characterMaximumLength": "155" + }, + { + "id": "244", + "name": "resolution", + "type": { + "id": "smallint", + "name": "smallint" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "245", + "name": "domain", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "246", + "name": "image_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "247", + "name": "hex_color", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "10" + }, + { + "id": "248", + "name": "endpoint_video", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "249", + "name": "endpoint_short", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "250", + "name": "endpoint_image", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "251", + "name": "endpoint_download", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "252", + "name": "created_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "253", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094 + }, + { + "id": "254", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "255", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + } + ], + "indexes": [ + { + "id": "256", + "name": "", + "unique": true, + "fieldIds": [ + "242" + ], + "createdAt": 1777282589094, + "isPrimaryKey": true + }, + { + "id": "257", + "name": "idx_video_services_name_resolution", + "unique": true, + "fieldIds": [ + "243", + "244" + ], + "createdAt": 1777282589094 + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589094, + "width": 337, + "order": 16, + "expanded": true, + "diagramId": "3taaalng0ut0" + }, + { + "id": "258", + "name": "media_licencors", + "schema": "public", + "x": 194.15644602007046, + "y": 251.9575649519487, + "fields": [ + { + "id": "259", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777360331507 + }, + { + "id": "260", + "name": "producer_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": false, + "nullable": false, + "createdAt": 1777360363236 + } + ], + "indexes": [ + { + "id": "261", + "name": "", + "unique": true, + "fieldIds": [ + "259", + "260" + ], + "createdAt": 1777360331507, + "isPrimaryKey": true + } + ], + "color": "#ffe374", + "isView": false, + "createdAt": 1777360331507, + "order": 22, + "diagramId": "3taaalng0ut0" + }, + { + "id": "262", + "name": "user_sessions", + "schema": "public", + "x": -1381.9054198604924, + "y": -1329.3058623634636, + "fields": [ + { + "id": "263", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1778814742487 + }, + { + "id": "264", + "name": "user_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778814761364 + }, + { + "id": "265", + "name": "device_type", + "type": { + "id": "device_type", + "name": "device_type" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778814807191 + }, + { + "id": "266", + "name": "os_type", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778814771991, + "characterMaximumLength": "50", + "default": null + }, + { + "id": "267", + "name": "os_version", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778814781826, + "characterMaximumLength": "50" + }, + { + "id": "268", + "name": "browser_name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778814787821, + "characterMaximumLength": "50" + }, + { + "id": "269", + "name": "browser_version", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778814794245, + "characterMaximumLength": "50" + }, + { + "id": "270", + "name": "ip_login", + "type": { + "id": "inet", + "name": "inet" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778814801981 + }, + { + "id": "271", + "name": "login_at", + "type": { + "id": "timestamptz", + "name": "timestamptz" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778814816604 + }, + { + "id": "272", + "name": "logout_at", + "type": { + "id": "timestamptz", + "name": "timestamptz" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778814877334 + } + ], + "indexes": [ + { + "id": "273", + "name": "", + "unique": true, + "fieldIds": [ + "263" + ], + "createdAt": 1778814742487, + "isPrimaryKey": true + } + ], + "color": "#4dee8a", + "isView": false, + "createdAt": 1778814742487, + "order": 44, + "expanded": true, + "diagramId": "3taaalng0ut0" + }, + { + "id": "274", + "name": "comment_audit_logs", + "schema": "public", + "x": -1031.768269593756, + "y": -322.47738647771854, + "fields": [ + { + "id": "275", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1778772275091 + }, + { + "id": "276", + "name": "comment_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778772293834 + }, + { + "id": "277", + "name": "performed_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778772315274 + }, + { + "id": "278", + "name": "action", + "type": { + "id": "audit_action", + "name": "audit_action" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778772326253 + }, + { + "id": "279", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778772335038 + } + ], + "indexes": [ + { + "id": "280", + "name": "", + "unique": true, + "fieldIds": [ + "275" + ], + "createdAt": 1778772275091, + "isPrimaryKey": true + } + ], + "color": "#b067e9", + "isView": false, + "createdAt": 1778772275091, + "order": 40, + "diagramId": "3taaalng0ut0" + }, + { + "id": "281", + "name": "comment_likes", + "schema": "public", + "x": -1435.9285690968027, + "y": 209.11179406446968, + "fields": [ + { + "id": "282", + "name": "user_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1778808096764 + }, + { + "id": "283", + "name": "comment_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778808185625 + }, + { + "id": "284", + "name": "type", + "type": { + "id": "like_type", + "name": "like_type" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778808192863 + }, + { + "id": "285", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778808284226 + } + ], + "indexes": [ + { + "id": "286", + "name": "index_1", + "unique": true, + "fieldIds": [ + "283", + "282" + ], + "createdAt": 1778808299354 + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1778808096764, + "order": 43, + "diagramId": "3taaalng0ut0" + }, + { + "id": "287", + "name": "video_service_submissions", + "schema": "public", + "x": -371.1847878375677, + "y": 1294.289208047582, + "fields": [ + { + "id": "288", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777362610195 + }, + { + "id": "289", + "name": "video_service_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362624424 + }, + { + "id": "290", + "name": "created_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362635996, + "comments": "" + }, + { + "id": "291", + "name": "status", + "type": { + "id": "status_submission", + "name": "status_submission" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777362700148, + "default": "pending", + "comments": "" + }, + { + "id": "292", + "name": "reviewed_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777362758238 + }, + { + "id": "293", + "name": "reviewed_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777363627973 + }, + { + "id": "294", + "name": "reason", + "type": { + "id": "text", + "name": "text" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777363674757 + }, + { + "id": "295", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777363686543, + "default": "now()" + } + ], + "indexes": [ + { + "id": "296", + "name": "", + "unique": true, + "fieldIds": [ + "288" + ], + "createdAt": 1777362610195, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777362610195, + "width": 337, + "order": 24, + "diagramId": "3taaalng0ut0" + }, + { + "id": "297", + "name": "provisioned_users", + "schema": "public", + "x": 204.8991215430349, + "y": -1369.625291260797, + "fields": [ + { + "id": "298", + "name": "provisioned_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1778517368377 + }, + { + "id": "299", + "name": "provisioned_to", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778517463769 + }, + { + "id": "300", + "name": "provisioned_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778517476998 + }, + { + "id": "301", + "name": "reason", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778517492646, + "characterMaximumLength": "255" + } + ], + "indexes": [], + "color": "#9ef07a", + "isView": false, + "createdAt": 1778517368377, + "order": 30, + "diagramId": "3taaalng0ut0" + }, + { + "id": "302", + "name": "comment_reports", + "schema": "public", + "x": -1032.5934799775514, + "y": -655.2659179217417, + "fields": [ + { + "id": "303", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1778777460892 + }, + { + "id": "304", + "name": "reporter_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778777475869 + }, + { + "id": "305", + "name": "comment_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778777483534 + }, + { + "id": "306", + "name": "title", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778777515056, + "characterMaximumLength": "115" + }, + { + "id": "307", + "name": "status", + "type": { + "id": "status_submission", + "name": "status_submission" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778777836090 + }, + { + "id": "308", + "name": "description", + "type": { + "id": "text", + "name": "text" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778777519944 + }, + { + "id": "309", + "name": "reported_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778777537682 + }, + { + "id": "310", + "name": "closed_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778777545373 + } + ], + "indexes": [], + "color": "#b067e9", + "isView": false, + "createdAt": 1778777460892, + "order": 42, + "diagramId": "3taaalng0ut0" + }, + { + "id": "311", + "name": "user_preferences", + "schema": "public", + "x": -675.7144111335546, + "y": -1493.2312805453928, + "fields": [ + { + "id": "312", + "name": "user_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1778517633815 + }, + { + "id": "313", + "name": "character_as_partner", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778518390023 + }, + { + "id": "314", + "name": "comment_picture", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778551730755, + "characterMaximumLength": "255" + }, + { + "id": "315", + "name": "enable_watch_history", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778548806729, + "default": "true" + }, + { + "id": "316", + "name": "enable_search_history", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778548790804, + "default": "false" + }, + { + "id": "317", + "name": "is_private_account", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778518216561, + "default": "false" + }, + { + "id": "318", + "name": "can_message_me", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778518177601, + "default": "true" + }, + { + "id": "319", + "name": "publish_birthday", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778518242632, + "default": "false" + }, + { + "id": "320", + "name": "publish_email", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778518265111, + "default": "false" + }, + { + "id": "321", + "name": "publish_phone_number", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778518273456, + "default": "false" + }, + { + "id": "322", + "name": "publish_country", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778817885185, + "default": "false" + }, + { + "id": "323", + "name": "publish_partner", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778518357114, + "default": "true" + }, + { + "id": "324", + "name": "subscribe_to_newsletter", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778808434279, + "default": "true" + }, + { + "id": "325", + "name": "enable_security_alerts", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778808466008, + "default": "true" + } + ], + "indexes": [ + { + "id": "326", + "name": "", + "unique": true, + "fieldIds": [ + "312" + ], + "createdAt": 1778517633815, + "isPrimaryKey": true + } + ], + "color": "#4dee8a", + "isView": false, + "createdAt": 1778517633815, + "order": 31, + "expanded": true, + "diagramId": "3taaalng0ut0" + }, + { + "id": "327", + "name": "genres", + "schema": "public", + "x": -1033.3879847948956, + "y": 283.68770102274635, + "fields": [ + { + "id": "328", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "329", + "name": "mal_id", + "type": { + "id": "smallint", + "name": "smallint" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094 + }, + { + "id": "330", + "name": "mal_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "155" + }, + { + "id": "331", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "unique": false, + "nullable": false, + "primaryKey": false, + "createdAt": 1779208587903, + "characterMaximumLength": "32", + "default": null + }, + { + "id": "332", + "name": "slug", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094, + "characterMaximumLength": "38" + }, + { + "id": "333", + "name": "thumbnail_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + } + ], + "indexes": [ + { + "id": "334", + "name": "", + "unique": true, + "fieldIds": [ + "328" + ], + "createdAt": 1777282589094, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589094, + "order": 14, + "diagramId": "3taaalng0ut0" + }, + { + "id": "335", + "name": "user_oauth_accounts", + "schema": "public", + "x": 200.04156829298174, + "y": -928.8832495975014, + "fields": [ + { + "id": "336", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1778516299633 + }, + { + "id": "337", + "name": "user_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778516366928 + }, + { + "id": "338", + "name": "provider_name", + "type": { + "id": "oauth_provider", + "name": "oauth_provider" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778822365657 + }, + { + "id": "339", + "name": "provider_sub", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778516403942, + "characterMaximumLength": "255" + }, + { + "id": "340", + "name": "provider_email", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778822096844, + "characterMaximumLength": "255", + "default": null + }, + { + "id": "341", + "name": "access_token", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778516373206, + "characterMaximumLength": "255", + "default": null + }, + { + "id": "342", + "name": "refresh_token", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778822164872, + "characterMaximumLength": "255" + }, + { + "id": "343", + "name": "last_login", + "type": { + "id": "timestamptz", + "name": "timestamptz" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778516872367 + }, + { + "id": "344", + "name": "expires_at", + "type": { + "id": "timestamptz", + "name": "timestamptz" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1778822177415 + }, + { + "id": "345", + "name": "created_at", + "type": { + "id": "timestamptz", + "name": "timestamptz" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778822183677 + }, + { + "id": "346", + "name": "updated_at", + "type": { + "id": "timestamptz", + "name": "timestamptz" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778822185523 + } + ], + "indexes": [ + { + "id": "347", + "name": "", + "unique": true, + "fieldIds": [ + "336" + ], + "createdAt": 1778516299633, + "isPrimaryKey": true + }, + { + "id": "348", + "name": "index_2", + "unique": true, + "fieldIds": [ + "337", + "338" + ], + "createdAt": 1778516903425 + } + ], + "color": "#4dee8a", + "isView": false, + "createdAt": 1778516299633, + "order": 29, + "expanded": true, + "diagramId": "3taaalng0ut0" + }, + { + "id": "349", + "name": "episodes", + "schema": "public", + "x": 196.42495741544377, + "y": 550.6255135491608, + "fields": [ + { + "id": "350", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "351", + "name": "media_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "352", + "name": "episode", + "type": { + "id": "smallint", + "name": "smallint" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "353", + "name": "mal_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "354", + "name": "mal_forum_url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "255" + }, + { + "id": "355", + "name": "title", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "characterMaximumLength": "155" + }, + { + "id": "356", + "name": "title_origin", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "155" + }, + { + "id": "357", + "name": "title_romanji", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "155" + }, + { + "id": "358", + "name": "aired", + "type": { + "id": "date", + "name": "date" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "359", + "name": "filler", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "default": "false" + }, + { + "id": "360", + "name": "recap", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "default": "false" + }, + { + "id": "361", + "name": "total_score", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777361135322 + }, + { + "id": "362", + "name": "scored_by", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777361233825 + }, + { + "id": "363", + "name": "videos", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "364", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + }, + { + "id": "365", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "366", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + } + ], + "indexes": [ + { + "id": "367", + "name": "", + "unique": true, + "fieldIds": [ + "350" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589093, + "order": 9, + "expanded": true, + "diagramId": "3taaalng0ut0" + }, + { + "id": "368", + "name": "media_sources", + "schema": "public", + "x": -680.0105470895069, + "y": 97.06852307742538, + "fields": [ + { + "id": "369", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "370", "name": "name", "type": { "id": "varchar", @@ -4689,11 +4664,11 @@ ], "indexes": [ { - "id": "374", + "id": "371", "name": "", "unique": true, "fieldIds": [ - "372" + "369" ], "createdAt": 1777282589093, "isPrimaryKey": true @@ -4702,88 +4677,18 @@ "color": "#ffe374", "isView": false, "createdAt": 1777282589093, - "order": 4, - "diagramId": "yqwsqwccoj6v" + "order": 5, + "diagramId": "3taaalng0ut0" }, { - "id": "375", - "name": "user_follows", - "x": 200.64283100307347, - "y": -1141.2347344393859, + "id": "372", + "name": "media_producers", + "schema": "public", + "x": 194.9363737010458, + "y": 104.92238147821836, "fields": [ { - "id": "376", - "name": "follower_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": false, - "createdAt": 1778401701334 - }, - { - "id": "377", - "name": "following_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778401722682 - }, - { - "id": "378", - "name": "followed_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778401734762 - } - ], - "indexes": [ - { - "id": "379", - "name": "index_1", - "fieldIds": [ - "377", - "376" - ], - "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": "380", - "name": "media_themes", - "schema": "public", - "x": -681.5109900103016, - "y": 752.8680228454149, - "fields": [ - { - "id": "381", + "id": "373", "name": "media_id", "type": { "id": "uuid", @@ -4792,11 +4697,11 @@ "primaryKey": true, "unique": true, "nullable": false, - "createdAt": 1777295294621 + "createdAt": 1777360177611 }, { - "id": "382", - "name": "genre_id", + "id": "374", + "name": "producer_id", "type": { "id": "uuid", "name": "uuid" @@ -4804,1426 +4709,1483 @@ "primaryKey": true, "unique": false, "nullable": false, - "createdAt": 1777295323224 + "createdAt": 1777360209223 } ], "indexes": [ { - "id": "383", + "id": "375", "name": "", "unique": true, "fieldIds": [ - "381", - "382" + "373", + "374" ], - "createdAt": 1777295294621, + "createdAt": 1777360177611, "isPrimaryKey": true } ], "color": "#ffe374", "isView": false, - "createdAt": 1777295294621, - "width": 224, - "order": 20, - "diagramId": "yqwsqwccoj6v" + "createdAt": 1777360177611, + "order": 21, + "diagramId": "3taaalng0ut0" }, { - "id": "384", - "name": "comment_likes", - "x": -1435.9285690968027, - "y": 209.11179406446968, + "id": "376", + "name": "videos", + "schema": "public", + "x": 613.6042418109826, + "y": 563.9662290869784, "fields": [ { - "id": "385", - "name": "user_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": false, - "createdAt": 1778808096764 - }, - { - "id": "386", - "name": "comment_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778808185625 - }, - { - "id": "387", - "name": "type", - "type": { - "id": "like_type", - "name": "like_type" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778808192863 - }, - { - "id": "388", - "name": "created_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778808284226 - } - ], - "indexes": [ - { - "id": "389", - "name": "index_1", - "fieldIds": [ - "386", - "385" - ], - "unique": true, - "createdAt": 1778808299354 - } - ], - "color": "#ff9f74", - "createdAt": 1778808096764, - "isView": false, - "order": 43, - "schema": "public" - }, - { - "id": "390", - "name": "user_sessions", - "x": -1381.9054198604924, - "y": -1329.3058623634636, - "fields": [ - { - "id": "391", + "id": "377", "name": "id", "type": { "id": "uuid", "name": "uuid" }, + "primaryKey": true, "unique": true, "nullable": false, - "primaryKey": true, - "createdAt": 1778814742487 + "createdAt": 1777282589094 }, { - "id": "392", - "name": "user_id", + "id": "378", + "name": "service_id", "type": { "id": "uuid", "name": "uuid" }, + "primaryKey": false, "unique": false, "nullable": false, - "primaryKey": false, - "createdAt": 1778814761364 + "createdAt": 1777282589094 }, { - "id": "393", - "name": "device_type", - "type": { - "id": "device_type", - "name": "device_type" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778814807191 - }, - { - "id": "394", - "name": "os_type", + "id": "379", + "name": "video_code", "type": { "id": "varchar", "name": "varchar" }, - "unique": false, - "nullable": true, "primaryKey": false, - "createdAt": 1778814771991 - }, - { - "id": "395", - "name": "os_version", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778814781826 - }, - { - "id": "396", - "name": "browser_name", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778814787821 - }, - { - "id": "397", - "name": "browser_version", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778814794245 - }, - { - "id": "398", - "name": "ip_login", - "type": { - "id": "inet", - "name": "inet" - }, "unique": false, "nullable": false, - "primaryKey": false, - "createdAt": 1778814801981 - }, - { - "id": "399", - "name": "last_activity_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778814857539 - }, - { - "id": "400", - "name": "login_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778814816604 - }, - { - "id": "401", - "name": "logout_at", - "type": { - "id": "timestamp", - "name": "timestamp" - }, - "unique": false, - "nullable": true, - "primaryKey": false, - "createdAt": 1778814877334 - } - ], - "indexes": [ - { - "id": "402", - "name": "", - "fieldIds": [ - "391" - ], - "unique": true, - "isPrimaryKey": true, - "createdAt": 1778814742487 - } - ], - "color": "#4dee8a", - "createdAt": 1778814742487, - "isView": false, - "order": 44, - "schema": "public", - "expanded": true - }, - { - "id": "403", - "name": "user_addresses", - "x": 655.2842034425264, - "y": -1010.0698801871714, - "fields": [ - { - "id": "404", - "name": "user_id", - "type": { - "id": "uuid", - "name": "uuid" - }, - "unique": true, - "nullable": false, - "primaryKey": true, - "createdAt": 1778816506150 - }, - { - "id": "405", - "name": "street_address", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778816542685, + "createdAt": 1777282589094, "characterMaximumLength": "255" }, { - "id": "406", - "name": "district", + "id": "380", + "name": "short_code", "type": { "id": "varchar", "name": "varchar" }, - "unique": false, - "nullable": false, "primaryKey": false, - "createdAt": 1778816551994, - "characterMaximumLength": "100" - }, - { - "id": "407", - "name": "city", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778816560720, - "characterMaximumLength": "100" - }, - { - "id": "408", - "name": "province", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778816564935, - "characterMaximumLength": "100" - }, - { - "id": "409", - "name": "postal_code", - "type": { - "id": "varchar", - "name": "varchar" - }, - "unique": false, - "nullable": false, - "primaryKey": false, - "createdAt": 1778816568904, - "characterMaximumLength": "20" - }, - { - "id": "410", - "name": "coordinate", - "type": { - "id": "varchar", - "name": "varchar" - }, "unique": false, "nullable": true, - "primaryKey": false, - "createdAt": 1778816577336, - "characterMaximumLength": "50" + "createdAt": 1777282589094, + "characterMaximumLength": "255" }, { - "id": "411", + "id": "381", + "name": "thumbnail_code", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "382", + "name": "download_code", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "383", + "name": "pending_upload", + "type": { + "id": "boolean", + "name": "boolean" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "default": "true" + }, + { + "id": "384", + "name": "created_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "385", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094 + }, + { + "id": "386", "name": "updated_at", "type": { "id": "timestamp", "name": "timestamp" }, + "primaryKey": false, "unique": false, "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "387", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, "primaryKey": false, - "createdAt": 1778816585545 + "unique": false, + "nullable": false, + "createdAt": 1777282589094 } ], "indexes": [ { - "id": "412", + "id": "388", "name": "", - "fieldIds": [ - "404" - ], "unique": true, - "isPrimaryKey": true, - "createdAt": 1778816506150 + "fieldIds": [ + "377" + ], + "createdAt": 1777282589094, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589094, + "order": 15, + "diagramId": "3taaalng0ut0" + }, + { + "id": "389", + "name": "producers", + "schema": "public", + "x": 614.2665328827337, + "y": 137.7660218436568, + "fields": [ + { + "id": "390", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "391", + "name": "mal_id", + "type": { + "id": "int", + "name": "int" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "392", + "name": "type", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589093, + "characterMaximumLength": "24" + }, + { + "id": "393", + "name": "name", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094, + "characterMaximumLength": "155" + }, + { + "id": "394", + "name": "url", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094, + "characterMaximumLength": "255" + }, + { + "id": "395", + "name": "created_by", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "396", + "name": "deleted_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589094 + }, + { + "id": "397", + "name": "updated_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + }, + { + "id": "398", + "name": "created_at", + "type": { + "id": "timestamp", + "name": "timestamp" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1777282589094 + } + ], + "indexes": [ + { + "id": "399", + "name": "", + "unique": true, + "fieldIds": [ + "390" + ], + "createdAt": 1777282589094, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589094, + "order": 13, + "diagramId": "3taaalng0ut0" + }, + { + "id": "400", + "name": "voice_actors", + "schema": "public", + "x": -1034.5971892955995, + "y": 536.4407371208936, + "fields": [ + { + "id": "401", + "name": "id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": true, + "unique": true, + "nullable": false, + "createdAt": 1777282589093 + }, + { + "id": "402", + "name": "language", + "type": { + "id": "varchar", + "name": "varchar" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093, + "characterMaximumLength": "115" + }, + { + "id": "403", + "name": "actor_staff", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": true, + "createdAt": 1777282589093 + } + ], + "indexes": [ + { + "id": "404", + "name": "", + "unique": true, + "fieldIds": [ + "401" + ], + "createdAt": 1777282589093, + "isPrimaryKey": true + } + ], + "color": "#ff9f74", + "isView": false, + "createdAt": 1777282589093, + "order": 11, + "diagramId": "3taaalng0ut0" + }, + { + "id": "405", + "name": "user_genre_preferences", + "schema": "public", + "x": -1033.5708487432953, + "y": -1502.401339834144, + "fields": [ + { + "id": "406", + "name": "user_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": true, + "nullable": false, + "createdAt": 1778548513047 + }, + { + "id": "407", + "name": "genre_id", + "type": { + "id": "uuid", + "name": "uuid" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778548529915 + }, + { + "id": "408", + "name": "state", + "type": { + "id": "user_preference_state", + "name": "user_preference_state" + }, + "primaryKey": false, + "unique": false, + "nullable": false, + "createdAt": 1778548535529 + } + ], + "indexes": [ + { + "id": "409", + "name": "index_1", + "unique": true, + "fieldIds": [ + "406", + "407" + ], + "createdAt": 1778548614328 } ], "color": "#4dee8a", - "createdAt": 1778816506150, "isView": false, - "order": 45, - "schema": "public" + "createdAt": 1778548513047, + "order": 31, + "diagramId": "3taaalng0ut0" } ], "relationships": [ { - "id": "413", + "id": "410", "name": "collection_members_collection_id_fk", "sourceSchema": "public", - "sourceTableId": "297", + "sourceTableId": "233", "targetSchema": "public", - "targetTableId": "136", - "sourceFieldId": "298", - "targetFieldId": "138", + "targetTableId": "201", + "sourceFieldId": "234", + "targetFieldId": "203", "sourceCardinality": "one", "targetCardinality": "many", "createdAt": 1778766565819, - "diagramId": "yqwsqwccoj6v" + "diagramId": "3taaalng0ut0" }, { - "id": "414", + "id": "411", "name": "collection_members_invited_by_fk", "sourceSchema": "public", - "sourceTableId": "251", + "sourceTableId": "155", "targetSchema": "public", - "targetTableId": "136", - "sourceFieldId": "252", - "targetFieldId": "141", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778766863110, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "415", - "name": "collection_members_user_id_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "136", - "sourceFieldId": "252", - "targetFieldId": "139", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778766807732, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "417", - "name": "comment_audit_logs_comment_id_fk", - "sourceSchema": "public", - "sourceTableId": "209", - "targetSchema": "public", - "targetTableId": "118", - "sourceFieldId": "210", - "targetFieldId": "120", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778777327740, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "418", - "name": "comment_audit_logs_performed_by_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "118", - "sourceFieldId": "252", - "targetFieldId": "121", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778777342519, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "420", - "name": "comment_reports_comment_id_fk", - "sourceSchema": "public", - "sourceTableId": "209", - "targetSchema": "public", - "targetTableId": "281", - "sourceFieldId": "210", - "targetFieldId": "284", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778777586444, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "421", - "name": "comment_reports_reporter_id_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "281", - "sourceFieldId": "252", - "targetFieldId": "283", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778777570446, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "422", - "name": "comments_episode_id_fk", - "sourceSchema": "public", - "sourceTableId": "5", - "targetSchema": "public", - "targetTableId": "209", - "sourceFieldId": "6", - "targetFieldId": "212", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778777292243, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "423", - "name": "comments_user_id_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "209", - "sourceFieldId": "252", - "targetFieldId": "211", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778777252269, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "424", - "name": "episodes_media_id_medias_id", - "sourceSchema": "public", - "sourceTableId": "5", - "targetSchema": "public", - "targetTableId": "37", - "sourceFieldId": "7", - "targetFieldId": "38", - "sourceCardinality": "many", - "targetCardinality": "one", - "createdAt": 1777282589094, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "425", - "name": "episodes_videos_videos_id", - "sourceSchema": "public", - "sourceTableId": "5", - "targetSchema": "public", - "targetTableId": "92", - "sourceFieldId": "19", - "targetFieldId": "93", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777282589095, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "426", - "name": "genre_selected_genre_id_fk", - "sourceSchema": "public", - "sourceTableId": "290", - "targetSchema": "public", - "targetTableId": "198", - "sourceFieldId": "291", - "targetFieldId": "200", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778548598785, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "427", - "name": "genre_selected_user_id_fk", - "sourceSchema": "public", - "sourceTableId": "182", - "targetSchema": "public", - "targetTableId": "198", - "sourceFieldId": "183", - "targetFieldId": "199", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778548583401, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "428", - "name": "genres_id_fk", - "sourceSchema": "public", - "sourceTableId": "290", - "targetSchema": "public", - "targetTableId": "380", - "sourceFieldId": "291", - "targetFieldId": "382", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777295361546, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "429", - "name": "home_media_banner_created_by_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "242", - "sourceFieldId": "252", - "targetFieldId": "245", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778771806907, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "430", - "name": "home_media_banner_media_id_fk", - "sourceSchema": "public", - "sourceTableId": "37", - "targetSchema": "public", - "targetTableId": "242", - "sourceFieldId": "38", - "targetFieldId": "244", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778771781222, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "431", - "name": "media_characters_characters_characters_id", - "sourceSchema": "public", - "sourceTableId": "125", - "targetSchema": "public", - "targetTableId": "24", - "sourceFieldId": "128", - "targetFieldId": "25", - "sourceCardinality": "many", - "targetCardinality": "one", - "createdAt": 1777282589094, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "432", - "name": "media_characters_voice_actor_voice_actors_id", - "sourceSchema": "public", - "sourceTableId": "125", - "targetSchema": "public", - "targetTableId": "305", - "sourceFieldId": "129", - "targetFieldId": "306", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777282589095, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "433", - "name": "media_collections_added_by_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "203", - "sourceFieldId": "252", + "targetTableId": "201", + "sourceFieldId": "156", "targetFieldId": "206", "sourceCardinality": "one", "targetCardinality": "many", - "createdAt": 1778733368958, - "diagramId": "yqwsqwccoj6v" + "createdAt": 1778766863110, + "diagramId": "3taaalng0ut0" }, { - "id": "434", - "name": "media_collections_collection_id_fk", + "id": "412", + "name": "collection_members_user_id_fk", "sourceSchema": "public", - "sourceTableId": "297", + "sourceTableId": "155", "targetSchema": "public", - "targetTableId": "203", - "sourceFieldId": "298", + "targetTableId": "201", + "sourceFieldId": "156", "targetFieldId": "204", "sourceCardinality": "one", "targetCardinality": "many", - "createdAt": 1778733702652, - "diagramId": "yqwsqwccoj6v" + "createdAt": 1778766807732, + "diagramId": "3taaalng0ut0" }, { - "id": "435", - "name": "media_explicit_genres_genre_id_fk", + "id": "413", + "name": "comment_audit_logs_comment_id_fk", "sourceSchema": "public", - "sourceTableId": "290", + "sourceTableId": "123", "targetSchema": "public", - "targetTableId": "152", - "sourceFieldId": "291", - "targetFieldId": "154", + "targetTableId": "274", + "sourceFieldId": "124", + "targetFieldId": "276", "sourceCardinality": "one", "targetCardinality": "many", - "createdAt": 1777283900006, - "diagramId": "yqwsqwccoj6v" + "createdAt": 1778777327740, + "diagramId": "3taaalng0ut0" }, { - "id": "436", - "name": "media_explicit_genres_media_id_fk", + "id": "414", + "name": "comment_audit_logs_performed_by_fk", "sourceSchema": "public", - "sourceTableId": "37", + "sourceTableId": "155", "targetSchema": "public", - "targetTableId": "152", - "sourceFieldId": "70", - "targetFieldId": "153", + "targetTableId": "274", + "sourceFieldId": "156", + "targetFieldId": "277", "sourceCardinality": "one", "targetCardinality": "many", - "createdAt": 1777283887322, - "diagramId": "yqwsqwccoj6v" + "createdAt": 1778777342519, + "diagramId": "3taaalng0ut0" }, { - "id": "437", - "name": "media_external_links_media_id_fk", + "id": "415", + "name": "comment_likes_comment_id_fk", "sourceSchema": "public", - "sourceTableId": "37", + "sourceTableId": "123", "targetSchema": "public", - "targetTableId": "156", - "sourceFieldId": "38", - "targetFieldId": "158", + "targetTableId": "281", + "sourceFieldId": "124", + "targetFieldId": "283", "sourceCardinality": "one", "targetCardinality": "many", - "createdAt": 1777299855251, - "diagramId": "yqwsqwccoj6v" + "createdAt": 1778808350916, + "diagramId": "3taaalng0ut0" }, { - "id": "438", - "name": "media_external_links_media_id_medias_id", + "id": "416", + "name": "comment_likes_user_id_fk", "sourceSchema": "public", - "sourceTableId": "156", + "sourceTableId": "76", "targetSchema": "public", - "targetTableId": "37", - "sourceFieldId": "158", - "targetFieldId": "38", - "sourceCardinality": "many", - "targetCardinality": "one", - "createdAt": 1777282589094, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "439", - "name": "media_genres_genre_id_fk", - "sourceSchema": "public", - "sourceTableId": "290", - "targetSchema": "public", - "targetTableId": "320", - "sourceFieldId": "291", - "targetFieldId": "322", + "targetTableId": "281", + "sourceFieldId": "77", + "targetFieldId": "282", "sourceCardinality": "one", "targetCardinality": "many", - "createdAt": 1777283616203, - "diagramId": "yqwsqwccoj6v" + "createdAt": 1778808338630, + "diagramId": "3taaalng0ut0" }, { - "id": "440", - "name": "media_genres_media_id_fk", + "id": "417", + "name": "comment_reports_comment_id_fk", "sourceSchema": "public", - "sourceTableId": "37", + "sourceTableId": "123", "targetSchema": "public", - "targetTableId": "320", - "sourceFieldId": "68", - "targetFieldId": "321", + "targetTableId": "302", + "sourceFieldId": "124", + "targetFieldId": "305", "sourceCardinality": "one", "targetCardinality": "many", - "createdAt": 1777283611719, - "diagramId": "yqwsqwccoj6v" + "createdAt": 1778777586444, + "diagramId": "3taaalng0ut0" }, { - "id": "441", - "name": "media_producers_producer_id_fk", + "id": "418", + "name": "comment_reports_reporter_id_fk", "sourceSchema": "public", - "sourceTableId": "166", + "sourceTableId": "155", "targetSchema": "public", - "targetTableId": "109", - "sourceFieldId": "167", - "targetFieldId": "111", + "targetTableId": "302", + "sourceFieldId": "156", + "targetFieldId": "304", "sourceCardinality": "one", "targetCardinality": "many", - "createdAt": 1777360252829, - "diagramId": "yqwsqwccoj6v" + "createdAt": 1778777570446, + "diagramId": "3taaalng0ut0" }, { - "id": "442", - "name": "media_relations_target_media_fk", + "id": "419", + "name": "comments_episode_id_fk", "sourceSchema": "public", - "sourceTableId": "37", + "sourceTableId": "349", "targetSchema": "public", - "targetTableId": "83", - "sourceFieldId": "38", - "targetFieldId": "86", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777299808576, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "443", - "name": "media_relations_target_media_fk", - "sourceSchema": "public", - "sourceTableId": "83", - "targetSchema": "public", - "targetTableId": "37", - "sourceFieldId": "86", - "targetFieldId": "38", - "sourceCardinality": "one", - "targetCardinality": "one", - "createdAt": 1777299795695, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "444", - "name": "media_relations_target_media_fk", - "sourceSchema": "public", - "sourceTableId": "83", - "targetSchema": "public", - "targetTableId": "37", - "sourceFieldId": "86", - "targetFieldId": "38", - "sourceCardinality": "one", - "targetCardinality": "one", - "createdAt": 1777299804996, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "445", - "name": "media_relations_target_media_medias_id", - "sourceSchema": "public", - "sourceTableId": "83", - "targetSchema": "public", - "targetTableId": "37", - "sourceFieldId": "86", - "targetFieldId": "38", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777282589094, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "446", - "name": "media_submissions_media_id_fk", - "sourceSchema": "public", - "sourceTableId": "342", - "targetSchema": "public", - "targetTableId": "37", - "sourceFieldId": "344", - "targetFieldId": "38", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777636061160, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "447", - "name": "media_submissions_media_id_fk", - "sourceSchema": "public", - "sourceTableId": "342", - "targetSchema": "public", - "targetTableId": "37", - "sourceFieldId": "344", - "targetFieldId": "38", - "sourceCardinality": "one", - "targetCardinality": "one", - "createdAt": 1777364362256, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "448", - "name": "media_types_id_medias_type", - "sourceSchema": "public", - "sourceTableId": "371", - "targetSchema": "public", - "targetTableId": "37", - "sourceFieldId": "372", - "targetFieldId": "49", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777282589094, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "449", - "name": "medias_age_rating_media_age_ratings_id", - "sourceSchema": "public", - "sourceTableId": "37", - "targetSchema": "public", - "targetTableId": "113", - "sourceFieldId": "55", - "targetFieldId": "114", - "sourceCardinality": "many", - "targetCardinality": "one", - "createdAt": 1777282589094, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "450", - "name": "medias_characters_media_characters_id", - "sourceSchema": "public", - "sourceTableId": "37", - "targetSchema": "public", - "targetTableId": "125", - "sourceFieldId": "75", + "targetTableId": "123", + "sourceFieldId": "350", "targetFieldId": "126", "sourceCardinality": "one", "targetCardinality": "many", - "createdAt": 1777282589094, - "diagramId": "yqwsqwccoj6v" + "createdAt": 1778777292243, + "diagramId": "3taaalng0ut0" }, { - "id": "451", - "name": "medias_country_fk", + "id": "420", + "name": "comments_user_id_fk", "sourceSchema": "public", - "sourceTableId": "144", + "sourceTableId": "155", "targetSchema": "public", - "targetTableId": "37", - "sourceFieldId": "145", - "targetFieldId": "63", + "targetTableId": "123", + "sourceFieldId": "156", + "targetFieldId": "125", "sourceCardinality": "one", "targetCardinality": "many", - "createdAt": 1778402285202, - "diagramId": "yqwsqwccoj6v" + "createdAt": 1778777252269, + "diagramId": "3taaalng0ut0" }, { - "id": "452", - "name": "medias_episodes_episodes_id", + "id": "421", + "name": "episodes_media_id_medias_id", "sourceSchema": "public", - "sourceTableId": "37", + "sourceTableId": "349", "targetSchema": "public", - "targetTableId": "5", - "sourceFieldId": "69", - "targetFieldId": "6", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777282589095, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "453", - "name": "medias_external_links_media_external_links_id", - "sourceSchema": "public", - "sourceTableId": "37", - "targetSchema": "public", - "targetTableId": "156", - "sourceFieldId": "74", - "targetFieldId": "157", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777282589094, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "454", - "name": "medias_id_fk", - "sourceSchema": "public", - "sourceTableId": "37", - "targetSchema": "public", - "targetTableId": "203", - "sourceFieldId": "38", - "targetFieldId": "205", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778733359073, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "455", - "name": "medias_licensors_fk", - "sourceSchema": "public", - "sourceTableId": "37", - "targetSchema": "public", - "targetTableId": "277", - "sourceFieldId": "66", - "targetFieldId": "278", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777360403880, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "456", - "name": "medias_producers_fk", - "sourceSchema": "public", - "sourceTableId": "37", - "targetSchema": "public", - "targetTableId": "109", - "sourceFieldId": "65", - "targetFieldId": "110", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777360239834, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "457", - "name": "medias_relations_media_relations_id", - "sourceSchema": "public", - "sourceTableId": "37", - "targetSchema": "public", - "targetTableId": "83", - "sourceFieldId": "73", - "targetFieldId": "84", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777282589094, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "458", - "name": "medias_source_media_sources_id", - "sourceSchema": "public", - "sourceTableId": "37", - "targetSchema": "public", - "targetTableId": "88", - "sourceFieldId": "50", - "targetFieldId": "89", + "targetTableId": "76", + "sourceFieldId": "351", + "targetFieldId": "77", "sourceCardinality": "many", "targetCardinality": "one", "createdAt": 1777282589094, - "diagramId": "yqwsqwccoj6v" + "diagramId": "3taaalng0ut0" }, { - "id": "459", - "name": "medias_status_media_statuses_id", + "id": "422", + "name": "episodes_videos_videos_id", "sourceSchema": "public", - "sourceTableId": "37", + "sourceTableId": "349", "targetSchema": "public", - "targetTableId": "162", - "sourceFieldId": "51", - "targetFieldId": "163", - "sourceCardinality": "many", - "targetCardinality": "one", - "createdAt": 1777282589094, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "460", - "name": "medias_studios_fk", - "sourceSchema": "public", - "sourceTableId": "37", - "targetSchema": "public", - "targetTableId": "273", - "sourceFieldId": "67", - "targetFieldId": "274", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777360574406, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "461", - "name": "medias_themes_fk", - "sourceSchema": "public", - "sourceTableId": "37", - "targetSchema": "public", - "targetTableId": "380", - "sourceFieldId": "71", - "targetFieldId": "381", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777295350412, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "462", - "name": "medias_trailers_media_trailers_id", - "sourceSchema": "public", - "sourceTableId": "37", - "targetSchema": "public", - "targetTableId": "362", - "sourceFieldId": "44", - "targetFieldId": "363", - "sourceCardinality": "one", - "targetCardinality": "one", - "createdAt": 1777282589094, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "463", - "name": "producers_id_fk", - "sourceSchema": "public", - "sourceTableId": "166", - "targetSchema": "public", - "targetTableId": "277", - "sourceFieldId": "167", - "targetFieldId": "279", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777360416280, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "464", - "name": "producers_id_fk", - "sourceSchema": "public", - "sourceTableId": "166", - "targetSchema": "public", - "targetTableId": "273", - "sourceFieldId": "167", - "targetFieldId": "275", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1777360597827, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "465", - "name": "provisioned_users_provisioned_by_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "131", - "sourceFieldId": "252", - "targetFieldId": "132", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778517515380, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "466", - "name": "provisioned_users_provisioned_to_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "131", - "sourceFieldId": "252", - "targetFieldId": "133", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778517541887, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "467", - "name": "rating_selected_rating_id_fk", - "sourceSchema": "public", - "sourceTableId": "113", - "targetSchema": "public", - "targetTableId": "1", - "sourceFieldId": "114", - "targetFieldId": "3", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778548767353, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "468", - "name": "rating_selected_user_id_fk", - "sourceSchema": "public", - "sourceTableId": "182", - "targetSchema": "public", - "targetTableId": "1", - "sourceFieldId": "183", - "targetFieldId": "2", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778548748682, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "471", - "name": "user_country_preferences_country_id_fk", - "sourceSchema": "public", - "sourceTableId": "144", - "targetSchema": "public", - "targetTableId": "105", - "sourceFieldId": "145", - "targetFieldId": "107", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778549061296, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "472", - "name": "user_country_preferences_user_id_fk", - "sourceSchema": "public", - "sourceTableId": "182", - "targetSchema": "public", - "targetTableId": "105", - "sourceFieldId": "183", - "targetFieldId": "106", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778549044482, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "473", - "name": "user_follows_follower_id_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "375", - "sourceFieldId": "252", - "targetFieldId": "376", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778402073659, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "474", - "name": "user_follows_following_id_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "375", - "sourceFieldId": "252", + "targetTableId": "376", + "sourceFieldId": "363", "targetFieldId": "377", "sourceCardinality": "one", "targetCardinality": "many", - "createdAt": 1778402077836, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "475", - "name": "user_preferences_character_as_partner_fk", - "sourceSchema": "public", - "sourceTableId": "24", - "targetSchema": "public", - "targetTableId": "182", - "sourceFieldId": "25", - "targetFieldId": "184", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778518451836, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "478", - "name": "user_preferences_user_id_fk", - "sourceSchema": "public", - "sourceTableId": "182", - "targetSchema": "public", - "targetTableId": "251", - "sourceFieldId": "183", - "targetFieldId": "252", - "sourceCardinality": "one", - "targetCardinality": "one", - "createdAt": 1778517654898, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "479", - "name": "user_watch_histories_episode_id_fk", - "sourceSchema": "public", - "sourceTableId": "5", - "targetSchema": "public", - "targetTableId": "177", - "sourceFieldId": "6", - "targetFieldId": "179", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778732139998, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "480", - "name": "user_watch_histories_user_id_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "177", - "sourceFieldId": "252", - "targetFieldId": "178", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778731708617, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "481", - "name": "users_country_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "144", - "sourceFieldId": "263", - "targetFieldId": "145", - "sourceCardinality": "one", - "targetCardinality": "one", - "createdAt": 1778401651979, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "482", - "name": "video_service_submissions_video_service_id_fk", - "sourceSchema": "public", - "sourceTableId": "352", - "targetSchema": "public", - "targetTableId": "325", - "sourceFieldId": "354", - "targetFieldId": "326", - "sourceCardinality": "one", - "targetCardinality": "one", - "createdAt": 1777364068966, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "483", - "name": "video_submissions_created_by_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "310", - "sourceFieldId": "252", - "targetFieldId": "313", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778732667055, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "484", - "name": "video_submissions_reviewed_by_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "310", - "sourceFieldId": "252", - "targetFieldId": "314", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778732708490, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "485", - "name": "video_submissions_video_id_fk", - "sourceSchema": "public", - "sourceTableId": "310", - "targetSchema": "public", - "targetTableId": "92", - "sourceFieldId": "312", - "targetFieldId": "93", - "sourceCardinality": "one", - "targetCardinality": "one", - "createdAt": 1778732648012, - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "486", - "name": "videos_service_id_video_services_id", - "sourceSchema": "public", - "sourceTableId": "92", - "targetSchema": "public", - "targetTableId": "325", - "sourceFieldId": "94", - "targetFieldId": "326", - "sourceCardinality": "many", - "targetCardinality": "one", "createdAt": 1777282589095, - "diagramId": "yqwsqwccoj6v" + "diagramId": "3taaalng0ut0" }, { - "id": "487", - "name": "voice_actors_actor_staff_staff_id", + "id": "423", + "name": "genre_selected_genre_id_fk", "sourceSchema": "public", - "sourceTableId": "305", + "sourceTableId": "327", "targetSchema": "public", - "targetTableId": "232", - "sourceFieldId": "308", - "targetFieldId": "233", + "targetTableId": "405", + "sourceFieldId": "328", + "targetFieldId": "407", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778548598785, + "diagramId": "3taaalng0ut0" + }, + { + "id": "424", + "name": "genre_selected_user_id_fk", + "sourceSchema": "public", + "sourceTableId": "311", + "targetSchema": "public", + "targetTableId": "405", + "sourceFieldId": "312", + "targetFieldId": "406", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778548583401, + "diagramId": "3taaalng0ut0" + }, + { + "id": "425", + "name": "genres_id_fk", + "sourceSchema": "public", + "sourceTableId": "327", + "targetSchema": "public", + "targetTableId": "72", + "sourceFieldId": "328", + "targetFieldId": "74", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777295361546, + "diagramId": "3taaalng0ut0" + }, + { + "id": "426", + "name": "home_media_banner_created_by_fk", + "sourceSchema": "public", + "sourceTableId": "155", + "targetSchema": "public", + "targetTableId": "47", + "sourceFieldId": "156", + "targetFieldId": "50", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778771806907, + "diagramId": "3taaalng0ut0" + }, + { + "id": "427", + "name": "home_media_banner_media_id_fk", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "47", + "sourceFieldId": "77", + "targetFieldId": "49", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778771781222, + "diagramId": "3taaalng0ut0" + }, + { + "id": "428", + "name": "media_characters_characters_characters_id", + "sourceSchema": "public", + "sourceTableId": "31", + "targetSchema": "public", + "targetTableId": "1", + "sourceFieldId": "34", + "targetFieldId": "2", "sourceCardinality": "many", "targetCardinality": "one", "createdAt": 1777282589094, - "diagramId": "yqwsqwccoj6v" + "diagramId": "3taaalng0ut0" }, { - "id": "488", - "name": "comment_likes_user_id_fk", + "id": "429", + "name": "media_characters_voice_actor_voice_actors_id", + "sourceSchema": "public", + "sourceTableId": "31", + "targetSchema": "public", + "targetTableId": "400", + "sourceFieldId": "35", + "targetFieldId": "401", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777282589095, + "diagramId": "3taaalng0ut0" + }, + { + "id": "430", + "name": "media_collections_added_by_fk", + "sourceSchema": "public", + "sourceTableId": "155", + "targetSchema": "public", + "targetTableId": "209", + "sourceFieldId": "156", + "targetFieldId": "212", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778733368958, + "diagramId": "3taaalng0ut0" + }, + { + "id": "431", + "name": "media_collections_collection_id_fk", + "sourceSchema": "public", + "sourceTableId": "233", + "targetSchema": "public", + "targetTableId": "209", + "sourceFieldId": "234", + "targetFieldId": "210", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778733702652, + "diagramId": "3taaalng0ut0" + }, + { + "id": "432", + "name": "media_explicit_genres_genre_id_fk", + "sourceSchema": "public", + "sourceTableId": "327", + "targetSchema": "public", + "targetTableId": "225", + "sourceFieldId": "328", + "targetFieldId": "227", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777283900006, + "diagramId": "3taaalng0ut0" + }, + { + "id": "433", + "name": "media_explicit_genres_media_id_fk", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "225", + "sourceFieldId": "106", + "targetFieldId": "226", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777283887322, + "diagramId": "3taaalng0ut0" + }, + { + "id": "434", + "name": "media_external_links_media_id_fk", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "56", + "sourceFieldId": "77", + "targetFieldId": "58", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777299855251, + "diagramId": "3taaalng0ut0" + }, + { + "id": "435", + "name": "media_external_links_media_id_medias_id", + "sourceSchema": "public", + "sourceTableId": "56", + "targetSchema": "public", + "targetTableId": "76", + "sourceFieldId": "58", + "targetFieldId": "77", + "sourceCardinality": "many", + "targetCardinality": "one", + "createdAt": 1777282589094, + "diagramId": "3taaalng0ut0" + }, + { + "id": "436", + "name": "media_genres_genre_id_fk", + "sourceSchema": "public", + "sourceTableId": "327", + "targetSchema": "public", + "targetTableId": "14", + "sourceFieldId": "328", + "targetFieldId": "16", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777283616203, + "diagramId": "3taaalng0ut0" + }, + { + "id": "437", + "name": "media_genres_media_id_fk", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "14", + "sourceFieldId": "105", + "targetFieldId": "15", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777283611719, + "diagramId": "3taaalng0ut0" + }, + { + "id": "438", + "name": "media_producers_producer_id_fk", + "sourceSchema": "public", + "sourceTableId": "389", + "targetSchema": "public", + "targetTableId": "372", + "sourceFieldId": "390", + "targetFieldId": "374", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777360252829, + "diagramId": "3taaalng0ut0" + }, + { + "id": "439", + "name": "media_relations_target_media_fk", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "220", + "sourceFieldId": "77", + "targetFieldId": "223", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777299808576, + "diagramId": "3taaalng0ut0" + }, + { + "id": "440", + "name": "media_relations_target_media_fk", + "sourceSchema": "public", + "sourceTableId": "220", + "targetSchema": "public", + "targetTableId": "76", + "sourceFieldId": "223", + "targetFieldId": "77", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1777299804996, + "diagramId": "3taaalng0ut0" + }, + { + "id": "441", + "name": "media_relations_target_media_fk", + "sourceSchema": "public", + "sourceTableId": "220", + "targetSchema": "public", + "targetTableId": "76", + "sourceFieldId": "223", + "targetFieldId": "77", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1777299795695, + "diagramId": "3taaalng0ut0" + }, + { + "id": "442", + "name": "media_relations_target_media_medias_id", + "sourceSchema": "public", + "sourceTableId": "220", + "targetSchema": "public", + "targetTableId": "76", + "sourceFieldId": "223", + "targetFieldId": "77", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777282589094, + "diagramId": "3taaalng0ut0" + }, + { + "id": "443", + "name": "media_submissions_media_id_fk", "sourceSchema": "public", "sourceTableId": "37", "targetSchema": "public", - "targetTableId": "384", - "sourceFieldId": "38", - "targetFieldId": "385", + "targetTableId": "76", + "sourceFieldId": "39", + "targetFieldId": "77", "sourceCardinality": "one", "targetCardinality": "many", - "createdAt": 1778808338630 + "createdAt": 1777636061160, + "diagramId": "3taaalng0ut0" }, { - "id": "489", - "name": "comment_likes_comment_id_fk", + "id": "444", + "name": "media_submissions_media_id_fk", "sourceSchema": "public", - "sourceTableId": "209", + "sourceTableId": "37", "targetSchema": "public", - "targetTableId": "384", - "sourceFieldId": "210", - "targetFieldId": "386", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778808350916 - }, - { - "id": "490", - "name": "user_sessions_user_id_fk", - "sourceSchema": "public", - "sourceTableId": "251", - "targetSchema": "public", - "targetTableId": "390", - "sourceFieldId": "252", - "targetFieldId": "392", - "sourceCardinality": "one", - "targetCardinality": "many", - "createdAt": 1778815073839 - }, - { - "id": "491", - "name": "user_addresses_user_id_fk", - "sourceSchema": "public", - "sourceTableId": "403", - "targetSchema": "public", - "targetTableId": "251", - "sourceFieldId": "404", - "targetFieldId": "252", + "targetTableId": "76", + "sourceFieldId": "39", + "targetFieldId": "77", "sourceCardinality": "one", "targetCardinality": "one", - "createdAt": 1778816615538 + "createdAt": 1777364362256, + "diagramId": "3taaalng0ut0" }, { - "id": "492", - "name": "user_oauth_credentials_user_id_fk", + "id": "445", + "name": "media_types_id_medias_type", "sourceSchema": "public", - "sourceTableId": "251", + "sourceTableId": "146", "targetSchema": "public", - "targetTableId": "218", - "sourceFieldId": "252", - "targetFieldId": "220", + "targetTableId": "76", + "sourceFieldId": "147", + "targetFieldId": "88", "sourceCardinality": "one", "targetCardinality": "many", - "createdAt": 1778822260934 + "createdAt": 1777282589094, + "diagramId": "3taaalng0ut0" + }, + { + "id": "446", + "name": "medias_age_rating_media_age_ratings_id", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "187", + "sourceFieldId": "94", + "targetFieldId": "188", + "sourceCardinality": "many", + "targetCardinality": "one", + "createdAt": 1777282589094, + "diagramId": "3taaalng0ut0" + }, + { + "id": "447", + "name": "medias_characters_media_characters_id", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "31", + "sourceFieldId": "111", + "targetFieldId": "32", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777282589094, + "diagramId": "3taaalng0ut0" + }, + { + "id": "448", + "name": "medias_country_fk", + "sourceSchema": "public", + "sourceTableId": "19", + "targetSchema": "public", + "targetTableId": "76", + "sourceFieldId": "20", + "targetFieldId": "100", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778402285202, + "diagramId": "3taaalng0ut0" + }, + { + "id": "449", + "name": "medias_external_links_media_external_links_id", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "56", + "sourceFieldId": "110", + "targetFieldId": "57", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777282589094, + "diagramId": "3taaalng0ut0" + }, + { + "id": "450", + "name": "medias_id_fk", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "209", + "sourceFieldId": "77", + "targetFieldId": "211", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778733359073, + "diagramId": "3taaalng0ut0" + }, + { + "id": "451", + "name": "medias_licensors_fk", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "258", + "sourceFieldId": "103", + "targetFieldId": "259", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777360403880, + "diagramId": "3taaalng0ut0" + }, + { + "id": "452", + "name": "medias_producers_fk", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "372", + "sourceFieldId": "102", + "targetFieldId": "373", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777360239834, + "diagramId": "3taaalng0ut0" + }, + { + "id": "453", + "name": "medias_relations_media_relations_id", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "220", + "sourceFieldId": "109", + "targetFieldId": "221", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777282589094, + "diagramId": "3taaalng0ut0" + }, + { + "id": "454", + "name": "medias_source_media_sources_id", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "368", + "sourceFieldId": "89", + "targetFieldId": "369", + "sourceCardinality": "many", + "targetCardinality": "one", + "createdAt": 1777282589094, + "diagramId": "3taaalng0ut0" + }, + { + "id": "455", + "name": "medias_status_media_statuses_id", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "229", + "sourceFieldId": "90", + "targetFieldId": "230", + "sourceCardinality": "many", + "targetCardinality": "one", + "createdAt": 1777282589094, + "diagramId": "3taaalng0ut0" + }, + { + "id": "456", + "name": "medias_studios_fk", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "119", + "sourceFieldId": "104", + "targetFieldId": "120", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777360574406, + "diagramId": "3taaalng0ut0" + }, + { + "id": "457", + "name": "medias_themes_fk", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "72", + "sourceFieldId": "107", + "targetFieldId": "73", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777295350412, + "diagramId": "3taaalng0ut0" + }, + { + "id": "458", + "name": "medias_trailers_media_trailers_id", + "sourceSchema": "public", + "sourceTableId": "76", + "targetSchema": "public", + "targetTableId": "192", + "sourceFieldId": "83", + "targetFieldId": "193", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1777282589094, + "diagramId": "3taaalng0ut0" + }, + { + "id": "459", + "name": "producers_id_fk", + "sourceSchema": "public", + "sourceTableId": "389", + "targetSchema": "public", + "targetTableId": "119", + "sourceFieldId": "390", + "targetFieldId": "121", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777360597827, + "diagramId": "3taaalng0ut0" + }, + { + "id": "460", + "name": "producers_id_fk", + "sourceSchema": "public", + "sourceTableId": "389", + "targetSchema": "public", + "targetTableId": "258", + "sourceFieldId": "390", + "targetFieldId": "260", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1777360416280, + "diagramId": "3taaalng0ut0" + }, + { + "id": "461", + "name": "provisioned_users_provisioned_by_fk", + "sourceSchema": "public", + "sourceTableId": "155", + "targetSchema": "public", + "targetTableId": "297", + "sourceFieldId": "156", + "targetFieldId": "298", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778517515380, + "diagramId": "3taaalng0ut0" + }, + { + "id": "462", + "name": "provisioned_users_provisioned_to_fk", + "sourceSchema": "public", + "sourceTableId": "155", + "targetSchema": "public", + "targetTableId": "297", + "sourceFieldId": "156", + "targetFieldId": "299", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778517541887, + "diagramId": "3taaalng0ut0" + }, + { + "id": "463", + "name": "rating_selected_rating_id_fk", + "sourceSchema": "public", + "sourceTableId": "187", + "targetSchema": "public", + "targetTableId": "142", + "sourceFieldId": "188", + "targetFieldId": "144", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778548767353, + "diagramId": "3taaalng0ut0" + }, + { + "id": "464", + "name": "rating_selected_user_id_fk", + "sourceSchema": "public", + "sourceTableId": "311", + "targetSchema": "public", + "targetTableId": "142", + "sourceFieldId": "312", + "targetFieldId": "143", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778548748682, + "diagramId": "3taaalng0ut0" + }, + { + "id": "465", + "name": "user_addresses_user_id_fk", + "sourceSchema": "public", + "sourceTableId": "62", + "targetSchema": "public", + "targetTableId": "155", + "sourceFieldId": "63", + "targetFieldId": "156", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1778816615538, + "diagramId": "3taaalng0ut0" + }, + { + "id": "466", + "name": "user_country_preferences_country_id_fk", + "sourceSchema": "public", + "sourceTableId": "19", + "targetSchema": "public", + "targetTableId": "27", + "sourceFieldId": "20", + "targetFieldId": "29", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778549061296, + "diagramId": "3taaalng0ut0" + }, + { + "id": "467", + "name": "user_country_preferences_user_id_fk", + "sourceSchema": "public", + "sourceTableId": "311", + "targetSchema": "public", + "targetTableId": "27", + "sourceFieldId": "312", + "targetFieldId": "28", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778549044482, + "diagramId": "3taaalng0ut0" + }, + { + "id": "468", + "name": "user_follows_follower_id_fk", + "sourceSchema": "public", + "sourceTableId": "155", + "targetSchema": "public", + "targetTableId": "215", + "sourceFieldId": "156", + "targetFieldId": "216", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778402073659, + "diagramId": "3taaalng0ut0" + }, + { + "id": "469", + "name": "user_follows_following_id_fk", + "sourceSchema": "public", + "sourceTableId": "155", + "targetSchema": "public", + "targetTableId": "215", + "sourceFieldId": "156", + "targetFieldId": "217", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778402077836, + "diagramId": "3taaalng0ut0" + }, + { + "id": "470", + "name": "user_oauth_credentials_user_id_fk", + "sourceSchema": "public", + "sourceTableId": "155", + "targetSchema": "public", + "targetTableId": "335", + "sourceFieldId": "156", + "targetFieldId": "337", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778822260934, + "diagramId": "3taaalng0ut0" + }, + { + "id": "471", + "name": "user_preferences_character_as_partner_fk", + "sourceSchema": "public", + "sourceTableId": "1", + "targetSchema": "public", + "targetTableId": "311", + "sourceFieldId": "2", + "targetFieldId": "313", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778518451836, + "diagramId": "3taaalng0ut0" + }, + { + "id": "472", + "name": "user_preferences_user_id_fk", + "sourceSchema": "public", + "sourceTableId": "311", + "targetSchema": "public", + "targetTableId": "155", + "sourceFieldId": "312", + "targetFieldId": "156", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1778517654898, + "diagramId": "3taaalng0ut0" + }, + { + "id": "473", + "name": "user_sessions_user_id_fk", + "sourceSchema": "public", + "sourceTableId": "155", + "targetSchema": "public", + "targetTableId": "262", + "sourceFieldId": "156", + "targetFieldId": "264", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778815073839, + "diagramId": "3taaalng0ut0" + }, + { + "id": "474", + "name": "user_watch_histories_episode_id_fk", + "sourceSchema": "public", + "sourceTableId": "349", + "targetSchema": "public", + "targetTableId": "150", + "sourceFieldId": "350", + "targetFieldId": "152", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778732139998, + "diagramId": "3taaalng0ut0" + }, + { + "id": "475", + "name": "user_watch_histories_user_id_fk", + "sourceSchema": "public", + "sourceTableId": "155", + "targetSchema": "public", + "targetTableId": "150", + "sourceFieldId": "156", + "targetFieldId": "151", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778731708617, + "diagramId": "3taaalng0ut0" + }, + { + "id": "476", + "name": "users_country_fk", + "sourceSchema": "public", + "sourceTableId": "155", + "targetSchema": "public", + "targetTableId": "19", + "sourceFieldId": "167", + "targetFieldId": "20", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1778401651979, + "diagramId": "3taaalng0ut0" + }, + { + "id": "477", + "name": "video_service_submissions_video_service_id_fk", + "sourceSchema": "public", + "sourceTableId": "287", + "targetSchema": "public", + "targetTableId": "241", + "sourceFieldId": "289", + "targetFieldId": "242", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1777364068966, + "diagramId": "3taaalng0ut0" + }, + { + "id": "478", + "name": "video_submissions_created_by_fk", + "sourceSchema": "public", + "sourceTableId": "155", + "targetSchema": "public", + "targetTableId": "177", + "sourceFieldId": "156", + "targetFieldId": "180", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778732667055, + "diagramId": "3taaalng0ut0" + }, + { + "id": "479", + "name": "video_submissions_reviewed_by_fk", + "sourceSchema": "public", + "sourceTableId": "155", + "targetSchema": "public", + "targetTableId": "177", + "sourceFieldId": "156", + "targetFieldId": "181", + "sourceCardinality": "one", + "targetCardinality": "many", + "createdAt": 1778732708490, + "diagramId": "3taaalng0ut0" + }, + { + "id": "480", + "name": "video_submissions_video_id_fk", + "sourceSchema": "public", + "sourceTableId": "177", + "targetSchema": "public", + "targetTableId": "376", + "sourceFieldId": "179", + "targetFieldId": "377", + "sourceCardinality": "one", + "targetCardinality": "one", + "createdAt": 1778732648012, + "diagramId": "3taaalng0ut0" + }, + { + "id": "481", + "name": "videos_service_id_video_services_id", + "sourceSchema": "public", + "sourceTableId": "376", + "targetSchema": "public", + "targetTableId": "241", + "sourceFieldId": "378", + "targetFieldId": "242", + "sourceCardinality": "many", + "targetCardinality": "one", + "createdAt": 1777282589095, + "diagramId": "3taaalng0ut0" + }, + { + "id": "482", + "name": "voice_actors_actor_staff_staff_id", + "sourceSchema": "public", + "sourceTableId": "400", + "targetSchema": "public", + "targetTableId": "132", + "sourceFieldId": "403", + "targetFieldId": "133", + "sourceCardinality": "many", + "targetCardinality": "one", + "createdAt": 1777282589094, + "diagramId": "3taaalng0ut0" } ], "dependencies": [], "areas": [], "customTypes": [ { - "id": "493", + "id": "483", "name": "audit_action", "kind": "enum", "values": [ @@ -6233,10 +6195,10 @@ "flag" ], "fields": [], - "diagramId": "yqwsqwccoj6v" + "diagramId": "3taaalng0ut0" }, { - "id": "494", + "id": "484", "name": "collection_access_level", "kind": "enum", "values": [ @@ -6246,10 +6208,58 @@ "owner" ], "fields": [], - "diagramId": "yqwsqwccoj6v" + "diagramId": "3taaalng0ut0" }, { - "id": "495", + "id": "485", + "name": "device_type", + "kind": "enum", + "values": [ + "mobile", + "tablet", + "desktop", + "unknown" + ], + "fields": [], + "diagramId": "3taaalng0ut0" + }, + { + "id": "486", + "name": "like_type", + "kind": "enum", + "values": [ + "like", + "dislike" + ], + "fields": [], + "diagramId": "3taaalng0ut0" + }, + { + "id": "487", + "name": "media_season", + "kind": "enum", + "values": [ + "winter", + "spring", + "summer", + "fall" + ], + "fields": [], + "diagramId": "3taaalng0ut0" + }, + { + "id": "488", + "name": "oauth_provider", + "kind": "enum", + "values": [ + "google", + "github" + ], + "fields": [], + "diagramId": "3taaalng0ut0" + }, + { + "id": "489", "name": "privacy_level", "kind": "enum", "values": [ @@ -6258,10 +6268,10 @@ "public" ], "fields": [], - "diagramId": "yqwsqwccoj6v" + "diagramId": "3taaalng0ut0" }, { - "id": "496", + "id": "490", "name": "status_submission", "kind": "enum", "values": [ @@ -6270,10 +6280,10 @@ "rejected" ], "fields": [], - "diagramId": "yqwsqwccoj6v" + "diagramId": "3taaalng0ut0" }, { - "id": "497", + "id": "491", "name": "user_preference_state", "kind": "enum", "values": [ @@ -6281,10 +6291,10 @@ "include" ], "fields": [], - "diagramId": "yqwsqwccoj6v" + "diagramId": "3taaalng0ut0" }, { - "id": "498", + "id": "492", "name": "user_role", "kind": "enum", "values": [ @@ -6294,10 +6304,10 @@ "administrator" ], "fields": [], - "diagramId": "yqwsqwccoj6v" + "diagramId": "3taaalng0ut0" }, { - "id": "499", + "id": "493", "name": "user_sex", "kind": "enum", "values": [ @@ -6305,39 +6315,7 @@ "male" ], "fields": [], - "diagramId": "yqwsqwccoj6v" - }, - { - "id": "500", - "name": "like_type", - "kind": "enum", - "values": [ - "like", - "dislike" - ], - "fields": [] - }, - { - "id": "501", - "name": "device_type", - "kind": "enum", - "values": [ - "mobile", - "tablet", - "desktop", - "unknown" - ], - "fields": [] - }, - { - "id": "502", - "name": "oauth_provider", - "kind": "enum", - "values": [ - "google", - "github" - ], - "fields": [] + "diagramId": "3taaalng0ut0" } ], "notes": []