{ "id": "0e98917e-e04a-4424-aa92-9c66371c9960", "prevId": "919e2530-f5a0-4aab-8a61-b4a3bacad982", "version": "7", "dialect": "postgresql", "tables": { "public.commentary": { "name": "commentary", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "match_id": { "name": "match_id", "type": "integer", "primaryKey": false, "notNull": true }, "minute": { "name": "minute", "type": "integer", "primaryKey": false, "notNull": false }, "sequence": { "name": "sequence", "type": "integer", "primaryKey": false, "notNull": false }, "period": { "name": "period", "type": "text", "primaryKey": false, "notNull": false }, "event_type": { "name": "event_type", "type": "text", "primaryKey": false, "notNull": false }, "actor": { "name": "actor", "type": "text", "primaryKey": false, "notNull": false }, "team": { "name": "team", "type": "text", "primaryKey": false, "notNull": false }, "message": { "name": "message", "type": "text", "primaryKey": false, "notNull": true }, "metadata": { "name": "metadata", "type": "jsonb", "primaryKey": false, "notNull": false }, "tags": { "name": "tags", "type": "text[]", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "commentary_match_id_matches_id_fk": { "name": "commentary_match_id_matches_id_fk", "tableFrom": "commentary", "tableTo": "matches", "columnsFrom": [ "match_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.matches": { "name": "matches", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "sport": { "name": "sport", "type": "text", "primaryKey": false, "notNull": true }, "home_team": { "name": "home_team", "type": "text", "primaryKey": false, "notNull": true }, "away_team": { "name": "away_team", "type": "text", "primaryKey": false, "notNull": true }, "status": { "name": "status", "type": "match_status", "typeSchema": "public", "primaryKey": false, "notNull": true, "default": "'scheduled'" }, "start_time": { "name": "start_time", "type": "timestamp", "primaryKey": false, "notNull": false }, "end_time": { "name": "end_time", "type": "timestamp", "primaryKey": false, "notNull": false }, "home_score": { "name": "home_score", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "away_score": { "name": "away_score", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": { "public.match_status": { "name": "match_status", "schema": "public", "values": [ "scheduled", "live", "finished" ] } }, "schemas": {}, "sequences": {}, "roles": {}, "policies": {}, "views": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }