{ "id": "44ea687c-f514-404a-be73-0f8f65cca593", "prevId": "4dbfbae0-5e55-4b56-8cc8-1bce887ea407", "version": "7", "dialect": "postgresql", "tables": { "public.actions": { "name": "actions", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "rendezvous_id": { "name": "rendezvous_id", "type": "integer", "primaryKey": false, "notNull": true }, "kind": { "name": "kind", "type": "text", "primaryKey": false, "notNull": true }, "training": { "name": "training", "type": "boolean", "primaryKey": false, "notNull": true }, "symbol": { "name": "symbol", "type": "text", "primaryKey": false, "notNull": false }, "payload": { "name": "payload", "type": "jsonb", "primaryKey": false, "notNull": true }, "status": { "name": "status", "type": "text", "primaryKey": false, "notNull": true, "default": "'pending'" }, "responded_at": { "name": "responded_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.ai_usage": { "name": "ai_usage", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "at": { "name": "at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "model": { "name": "model", "type": "text", "primaryKey": false, "notNull": true }, "purpose": { "name": "purpose", "type": "text", "primaryKey": false, "notNull": true }, "input_tokens": { "name": "input_tokens", "type": "integer", "primaryKey": false, "notNull": true }, "output_tokens": { "name": "output_tokens", "type": "integer", "primaryKey": false, "notNull": true }, "cost_usd": { "name": "cost_usd", "type": "double precision", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.cash_flows": { "name": "cash_flows", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "portfolio_id": { "name": "portfolio_id", "type": "text", "primaryKey": false, "notNull": true }, "amount": { "name": "amount", "type": "double precision", "primaryKey": false, "notNull": true }, "kind": { "name": "kind", "type": "text", "primaryKey": false, "notNull": true }, "date": { "name": "date", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.equity_snapshots": { "name": "equity_snapshots", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "portfolio_id": { "name": "portfolio_id", "type": "text", "primaryKey": false, "notNull": true }, "date": { "name": "date", "type": "text", "primaryKey": false, "notNull": true }, "equity": { "name": "equity", "type": "double precision", "primaryKey": false, "notNull": true } }, "indexes": { "equity_portfolio_date_idx": { "name": "equity_portfolio_date_idx", "columns": [ { "expression": "portfolio_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "date", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.kv": { "name": "kv", "schema": "", "columns": { "key": { "name": "key", "type": "text", "primaryKey": true, "notNull": true }, "value": { "name": "value", "type": "jsonb", "primaryKey": false, "notNull": true }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.news": { "name": "news", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "symbol": { "name": "symbol", "type": "text", "primaryKey": false, "notNull": true }, "title": { "name": "title", "type": "text", "primaryKey": false, "notNull": true }, "publisher": { "name": "publisher", "type": "text", "primaryKey": false, "notNull": false }, "url": { "name": "url", "type": "text", "primaryKey": false, "notNull": false }, "published_at": { "name": "published_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "triage": { "name": "triage", "type": "jsonb", "primaryKey": false, "notNull": false }, "triaged_at": { "name": "triaged_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "alerted_at": { "name": "alerted_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.orders": { "name": "orders", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "portfolio_id": { "name": "portfolio_id", "type": "text", "primaryKey": false, "notNull": true }, "symbol": { "name": "symbol", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "currency": { "name": "currency", "type": "text", "primaryKey": false, "notNull": true }, "side": { "name": "side", "type": "text", "primaryKey": false, "notNull": true }, "type": { "name": "type", "type": "text", "primaryKey": false, "notNull": true }, "limit_price": { "name": "limit_price", "type": "double precision", "primaryKey": false, "notNull": false }, "shares": { "name": "shares", "type": "double precision", "primaryKey": false, "notNull": true }, "stop_price": { "name": "stop_price", "type": "double precision", "primaryKey": false, "notNull": false }, "target_price": { "name": "target_price", "type": "double precision", "primaryKey": false, "notNull": false }, "max_exit_date": { "name": "max_exit_date", "type": "text", "primaryKey": false, "notNull": false }, "position_id": { "name": "position_id", "type": "integer", "primaryKey": false, "notNull": false }, "signal_id": { "name": "signal_id", "type": "integer", "primaryKey": false, "notNull": false }, "status": { "name": "status", "type": "text", "primaryKey": false, "notNull": true, "default": "'pending'" }, "valid_until": { "name": "valid_until", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "filled_at": { "name": "filled_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "fill_price": { "name": "fill_price", "type": "double precision", "primaryKey": false, "notNull": false }, "note": { "name": "note", "type": "text", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.portfolios": { "name": "portfolios", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "initial_cash": { "name": "initial_cash", "type": "double precision", "primaryKey": false, "notNull": true }, "cash": { "name": "cash", "type": "double precision", "primaryKey": false, "notNull": true }, "high_water_mark": { "name": "high_water_mark", "type": "double precision", "primaryKey": false, "notNull": true, "default": 0 }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.positions": { "name": "positions", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "portfolio_id": { "name": "portfolio_id", "type": "text", "primaryKey": false, "notNull": true }, "symbol": { "name": "symbol", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "currency": { "name": "currency", "type": "text", "primaryKey": false, "notNull": true }, "shares": { "name": "shares", "type": "double precision", "primaryKey": false, "notNull": true }, "entry_price": { "name": "entry_price", "type": "double precision", "primaryKey": false, "notNull": true }, "entry_fx": { "name": "entry_fx", "type": "double precision", "primaryKey": false, "notNull": true }, "opened_at": { "name": "opened_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true }, "stop_price": { "name": "stop_price", "type": "double precision", "primaryKey": false, "notNull": false }, "target_price": { "name": "target_price", "type": "double precision", "primaryKey": false, "notNull": false }, "max_exit_date": { "name": "max_exit_date", "type": "text", "primaryKey": false, "notNull": false }, "status": { "name": "status", "type": "text", "primaryKey": false, "notNull": true, "default": "'open'" }, "closed_at": { "name": "closed_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "exit_price": { "name": "exit_price", "type": "double precision", "primaryKey": false, "notNull": false }, "exit_fx": { "name": "exit_fx", "type": "double precision", "primaryKey": false, "notNull": false }, "exit_reason": { "name": "exit_reason", "type": "text", "primaryKey": false, "notNull": false }, "fees_eur": { "name": "fees_eur", "type": "double precision", "primaryKey": false, "notNull": true, "default": 0 }, "pnl_eur": { "name": "pnl_eur", "type": "double precision", "primaryKey": false, "notNull": false }, "signal_id": { "name": "signal_id", "type": "integer", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.push_subscriptions": { "name": "push_subscriptions", "schema": "", "columns": { "endpoint": { "name": "endpoint", "type": "text", "primaryKey": true, "notNull": true }, "keys": { "name": "keys", "type": "jsonb", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.rendezvous": { "name": "rendezvous", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "date": { "name": "date", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "summary": { "name": "summary", "type": "text", "primaryKey": false, "notNull": true }, "notified_at": { "name": "notified_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false } }, "indexes": { "rendezvous_date_idx": { "name": "rendezvous_date_idx", "columns": [ { "expression": "date", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.signals": { "name": "signals", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "date": { "name": "date", "type": "text", "primaryKey": false, "notNull": true }, "symbol": { "name": "symbol", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "decision": { "name": "decision", "type": "text", "primaryKey": false, "notNull": true }, "confidence": { "name": "confidence", "type": "integer", "primaryKey": false, "notNull": true }, "thesis": { "name": "thesis", "type": "text", "primaryKey": false, "notNull": true }, "risks": { "name": "risks", "type": "text", "primaryKey": false, "notNull": true }, "expected_move_pct": { "name": "expected_move_pct", "type": "double precision", "primaryKey": false, "notNull": true }, "stop_pct": { "name": "stop_pct", "type": "double precision", "primaryKey": false, "notNull": true }, "target_pct": { "name": "target_pct", "type": "double precision", "primaryKey": false, "notNull": true }, "horizon_days": { "name": "horizon_days", "type": "integer", "primaryKey": false, "notNull": true }, "price_at_signal": { "name": "price_at_signal", "type": "double precision", "primaryKey": false, "notNull": true }, "currency": { "name": "currency", "type": "text", "primaryKey": false, "notNull": true }, "news_ids": { "name": "news_ids", "type": "jsonb", "primaryKey": false, "notNull": true }, "risk_verdict": { "name": "risk_verdict", "type": "text", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": {}, "schemas": {}, "sequences": {}, "roles": {}, "policies": {}, "views": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }