boredgame/drizzle/meta/0012_snapshot.json

1346 lines
No EOL
35 KiB
JSON

{
"id": "58f18282-0b26-4fee-a68d-08867b5729df",
"prevId": "e0ba3399-0ff3-4e9e-921f-3d6617354bc8",
"version": "5",
"dialect": "pg",
"tables": {
"categories": {
"name": "categories",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "varchar(255)",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"slug": {
"name": "slug",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"external_id": {
"name": "external_id",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"categories_to_external_ids": {
"name": "categories_to_external_ids",
"schema": "",
"columns": {
"category_id": {
"name": "category_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"external_id": {
"name": "external_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"categories_to_external_ids_category_id_categories_id_fk": {
"name": "categories_to_external_ids_category_id_categories_id_fk",
"tableFrom": "categories_to_external_ids",
"tableTo": "categories",
"columnsFrom": [
"category_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
},
"categories_to_external_ids_external_id_external_ids_id_fk": {
"name": "categories_to_external_ids_external_id_external_ids_id_fk",
"tableFrom": "categories_to_external_ids",
"tableTo": "external_ids",
"columnsFrom": [
"external_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
}
},
"compositePrimaryKeys": {
"categories_to_external_ids_category_id_external_id_pk": {
"name": "categories_to_external_ids_category_id_external_id_pk",
"columns": [
"category_id",
"external_id"
]
}
},
"uniqueConstraints": {}
},
"categories_to_games": {
"name": "categories_to_games",
"schema": "",
"columns": {
"category_id": {
"name": "category_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"game_id": {
"name": "game_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"categories_to_games_category_id_categories_id_fk": {
"name": "categories_to_games_category_id_categories_id_fk",
"tableFrom": "categories_to_games",
"tableTo": "categories",
"columnsFrom": [
"category_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
},
"categories_to_games_game_id_games_id_fk": {
"name": "categories_to_games_game_id_games_id_fk",
"tableFrom": "categories_to_games",
"tableTo": "games",
"columnsFrom": [
"game_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
}
},
"compositePrimaryKeys": {
"categories_to_games_category_id_game_id_pk": {
"name": "categories_to_games_category_id_game_id_pk",
"columns": [
"category_id",
"game_id"
]
}
},
"uniqueConstraints": {}
},
"collection_items": {
"name": "collection_items",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "varchar(255)",
"primaryKey": true,
"notNull": true
},
"collection_id": {
"name": "collection_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"game_id": {
"name": "game_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"times_played": {
"name": "times_played",
"type": "integer",
"primaryKey": false,
"notNull": false,
"default": 0
},
"created_at": {
"name": "created_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"collection_items_collection_id_collections_id_fk": {
"name": "collection_items_collection_id_collections_id_fk",
"tableFrom": "collection_items",
"tableTo": "collections",
"columnsFrom": [
"collection_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"collection_items_game_id_games_id_fk": {
"name": "collection_items_game_id_games_id_fk",
"tableFrom": "collection_items",
"tableTo": "games",
"columnsFrom": [
"game_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"collections": {
"name": "collections",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "varchar(255)",
"primaryKey": true,
"notNull": true
},
"user_id": {
"name": "user_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"collections_user_id_users_id_fk": {
"name": "collections_user_id_users_id_fk",
"tableFrom": "collections",
"tableTo": "users",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"expansions": {
"name": "expansions",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "varchar(255)",
"primaryKey": true,
"notNull": true
},
"base_game_id": {
"name": "base_game_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"game_id": {
"name": "game_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"expansions_base_game_id_games_id_fk": {
"name": "expansions_base_game_id_games_id_fk",
"tableFrom": "expansions",
"tableTo": "games",
"columnsFrom": [
"base_game_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
},
"expansions_game_id_games_id_fk": {
"name": "expansions_game_id_games_id_fk",
"tableFrom": "expansions",
"tableTo": "games",
"columnsFrom": [
"game_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"expansions_to_external_ids": {
"name": "expansions_to_external_ids",
"schema": "",
"columns": {
"expansion_id": {
"name": "expansion_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"external_id": {
"name": "external_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"expansions_to_external_ids_expansion_id_expansions_id_fk": {
"name": "expansions_to_external_ids_expansion_id_expansions_id_fk",
"tableFrom": "expansions_to_external_ids",
"tableTo": "expansions",
"columnsFrom": [
"expansion_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
},
"expansions_to_external_ids_external_id_external_ids_id_fk": {
"name": "expansions_to_external_ids_external_id_external_ids_id_fk",
"tableFrom": "expansions_to_external_ids",
"tableTo": "external_ids",
"columnsFrom": [
"external_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
}
},
"compositePrimaryKeys": {
"expansions_to_external_ids_expansion_id_external_id_pk": {
"name": "expansions_to_external_ids_expansion_id_external_id_pk",
"columns": [
"expansion_id",
"external_id"
]
}
},
"uniqueConstraints": {}
},
"external_ids": {
"name": "external_ids",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "varchar(255)",
"primaryKey": true,
"notNull": true
},
"type": {
"name": "type",
"type": "external_id_type",
"primaryKey": false,
"notNull": true
},
"external_id": {
"name": "external_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"games": {
"name": "games",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "varchar(255)",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"slug": {
"name": "slug",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"description": {
"name": "description",
"type": "text",
"primaryKey": false,
"notNull": false
},
"year_published": {
"name": "year_published",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"min_players": {
"name": "min_players",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"max_players": {
"name": "max_players",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"playtime": {
"name": "playtime",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"min_playtime": {
"name": "min_playtime",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"max_playtime": {
"name": "max_playtime",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"min_age": {
"name": "min_age",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"image_url": {
"name": "image_url",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"thumb_url": {
"name": "thumb_url",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"url": {
"name": "url",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"text_searchable_index": {
"name": "text_searchable_index",
"type": "tsvector",
"primaryKey": false,
"notNull": false
},
"last_sync_at": {
"name": "last_sync_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {
"text_searchable_idx": {
"name": "text_searchable_idx",
"columns": [
"text_searchable_index"
],
"isUnique": false
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"games_to_external_ids": {
"name": "games_to_external_ids",
"schema": "",
"columns": {
"game_id": {
"name": "game_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"external_id": {
"name": "external_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"games_to_external_ids_game_id_games_id_fk": {
"name": "games_to_external_ids_game_id_games_id_fk",
"tableFrom": "games_to_external_ids",
"tableTo": "games",
"columnsFrom": [
"game_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
},
"games_to_external_ids_external_id_external_ids_id_fk": {
"name": "games_to_external_ids_external_id_external_ids_id_fk",
"tableFrom": "games_to_external_ids",
"tableTo": "external_ids",
"columnsFrom": [
"external_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
}
},
"compositePrimaryKeys": {
"games_to_external_ids_game_id_external_id_pk": {
"name": "games_to_external_ids_game_id_external_id_pk",
"columns": [
"game_id",
"external_id"
]
}
},
"uniqueConstraints": {}
},
"mechanics": {
"name": "mechanics",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "varchar(255)",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"slug": {
"name": "slug",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"external_id": {
"name": "external_id",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"mechanics_to_external_ids": {
"name": "mechanics_to_external_ids",
"schema": "",
"columns": {
"mechanic_id": {
"name": "mechanic_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"external_id": {
"name": "external_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"mechanics_to_external_ids_mechanic_id_mechanics_id_fk": {
"name": "mechanics_to_external_ids_mechanic_id_mechanics_id_fk",
"tableFrom": "mechanics_to_external_ids",
"tableTo": "mechanics",
"columnsFrom": [
"mechanic_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
},
"mechanics_to_external_ids_external_id_external_ids_id_fk": {
"name": "mechanics_to_external_ids_external_id_external_ids_id_fk",
"tableFrom": "mechanics_to_external_ids",
"tableTo": "external_ids",
"columnsFrom": [
"external_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
}
},
"compositePrimaryKeys": {
"mechanics_to_external_ids_mechanic_id_external_id_pk": {
"name": "mechanics_to_external_ids_mechanic_id_external_id_pk",
"columns": [
"mechanic_id",
"external_id"
]
}
},
"uniqueConstraints": {}
},
"mechanics_to_games": {
"name": "mechanics_to_games",
"schema": "",
"columns": {
"mechanic_id": {
"name": "mechanic_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"game_id": {
"name": "game_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"mechanics_to_games_mechanic_id_mechanics_id_fk": {
"name": "mechanics_to_games_mechanic_id_mechanics_id_fk",
"tableFrom": "mechanics_to_games",
"tableTo": "mechanics",
"columnsFrom": [
"mechanic_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
},
"mechanics_to_games_game_id_games_id_fk": {
"name": "mechanics_to_games_game_id_games_id_fk",
"tableFrom": "mechanics_to_games",
"tableTo": "games",
"columnsFrom": [
"game_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
}
},
"compositePrimaryKeys": {
"mechanics_to_games_mechanic_id_game_id_pk": {
"name": "mechanics_to_games_mechanic_id_game_id_pk",
"columns": [
"mechanic_id",
"game_id"
]
}
},
"uniqueConstraints": {}
},
"publishers": {
"name": "publishers",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "varchar(255)",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"slug": {
"name": "slug",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"external_id": {
"name": "external_id",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"publishers_to_external_ids": {
"name": "publishers_to_external_ids",
"schema": "",
"columns": {
"publisher_id": {
"name": "publisher_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"external_id": {
"name": "external_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"publishers_to_external_ids_publisher_id_publishers_id_fk": {
"name": "publishers_to_external_ids_publisher_id_publishers_id_fk",
"tableFrom": "publishers_to_external_ids",
"tableTo": "publishers",
"columnsFrom": [
"publisher_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
},
"publishers_to_external_ids_external_id_external_ids_id_fk": {
"name": "publishers_to_external_ids_external_id_external_ids_id_fk",
"tableFrom": "publishers_to_external_ids",
"tableTo": "external_ids",
"columnsFrom": [
"external_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
}
},
"compositePrimaryKeys": {
"publishers_to_external_ids_publisher_id_external_id_pk": {
"name": "publishers_to_external_ids_publisher_id_external_id_pk",
"columns": [
"publisher_id",
"external_id"
]
}
},
"uniqueConstraints": {}
},
"publishers_to_games": {
"name": "publishers_to_games",
"schema": "",
"columns": {
"publisher_id": {
"name": "publisher_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"game_id": {
"name": "game_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"publishers_to_games_publisher_id_publishers_id_fk": {
"name": "publishers_to_games_publisher_id_publishers_id_fk",
"tableFrom": "publishers_to_games",
"tableTo": "publishers",
"columnsFrom": [
"publisher_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
},
"publishers_to_games_game_id_games_id_fk": {
"name": "publishers_to_games_game_id_games_id_fk",
"tableFrom": "publishers_to_games",
"tableTo": "games",
"columnsFrom": [
"game_id"
],
"columnsTo": [
"id"
],
"onDelete": "restrict",
"onUpdate": "cascade"
}
},
"compositePrimaryKeys": {
"publishers_to_games_publisher_id_game_id_pk": {
"name": "publishers_to_games_publisher_id_game_id_pk",
"columns": [
"publisher_id",
"game_id"
]
}
},
"uniqueConstraints": {}
},
"roles": {
"name": "roles",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "varchar(255)",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {
"roles_name_unique": {
"name": "roles_name_unique",
"nullsNotDistinct": false,
"columns": [
"name"
]
}
}
},
"sessions": {
"name": "sessions",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "varchar(255)",
"primaryKey": true,
"notNull": true
},
"user_id": {
"name": "user_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"expires_at": {
"name": "expires_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
},
"ip_country": {
"name": "ip_country",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"ip_address": {
"name": "ip_address",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {
"sessions_user_id_users_id_fk": {
"name": "sessions_user_id_users_id_fk",
"tableFrom": "sessions",
"tableTo": "users",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"user_roles": {
"name": "user_roles",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "varchar(255)",
"primaryKey": true,
"notNull": true
},
"user_id": {
"name": "user_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"role_id": {
"name": "role_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"user_roles_user_id_users_id_fk": {
"name": "user_roles_user_id_users_id_fk",
"tableFrom": "user_roles",
"tableTo": "users",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"user_roles_role_id_roles_id_fk": {
"name": "user_roles_role_id_roles_id_fk",
"tableFrom": "user_roles",
"tableTo": "roles",
"columnsFrom": [
"role_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"users": {
"name": "users",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "varchar(255)",
"primaryKey": true,
"notNull": true
},
"username": {
"name": "username",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"hashed_password": {
"name": "hashed_password",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"email": {
"name": "email",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"first_name": {
"name": "first_name",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"last_name": {
"name": "last_name",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"verified": {
"name": "verified",
"type": "boolean",
"primaryKey": false,
"notNull": false,
"default": false
},
"receive_email": {
"name": "receive_email",
"type": "boolean",
"primaryKey": false,
"notNull": false,
"default": false
},
"theme": {
"name": "theme",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false,
"default": "'system'"
},
"created_at": {
"name": "created_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {
"users_username_unique": {
"name": "users_username_unique",
"nullsNotDistinct": false,
"columns": [
"username"
]
},
"users_email_unique": {
"name": "users_email_unique",
"nullsNotDistinct": false,
"columns": [
"email"
]
}
}
},
"wishlist_items": {
"name": "wishlist_items",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "varchar(255)",
"primaryKey": true,
"notNull": true
},
"wishlist_id": {
"name": "wishlist_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"game_id": {
"name": "game_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"wishlist_items_wishlist_id_wishlists_id_fk": {
"name": "wishlist_items_wishlist_id_wishlists_id_fk",
"tableFrom": "wishlist_items",
"tableTo": "wishlists",
"columnsFrom": [
"wishlist_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"wishlist_items_game_id_games_id_fk": {
"name": "wishlist_items_game_id_games_id_fk",
"tableFrom": "wishlist_items",
"tableTo": "games",
"columnsFrom": [
"game_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"wishlists": {
"name": "wishlists",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "varchar(255)",
"primaryKey": true,
"notNull": true
},
"user_id": {
"name": "user_id",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"wishlists_user_id_users_id_fk": {
"name": "wishlists_user_id_users_id_fk",
"tableFrom": "wishlists",
"tableTo": "users",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
}
},
"enums": {
"external_id_type": {
"name": "external_id_type",
"values": {
"game": "game",
"category": "category",
"mechanic": "mechanic",
"publisher": "publisher",
"designer": "designer",
"artist": "artist"
}
}
},
"schemas": {},
"_meta": {
"columns": {},
"schemas": {},
"tables": {}
}
}