Files
book-tac/tac-app/drizzle/meta/0005_snapshot.json
T

1403 lines
36 KiB
JSON

{
"id": "a04f762d-fb76-4921-a73b-f649eca8eb15",
"prevId": "ac54b5f9-a7b6-4ffa-8da1-adab67393980",
"version": "7",
"dialect": "postgresql",
"tables": {
"public.fact_events": {
"name": "fact_events",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigserial",
"primaryKey": true,
"notNull": true
},
"round_id": {
"name": "round_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"kind": {
"name": "kind",
"type": "text",
"primaryKey": false,
"notNull": true
},
"symbol": {
"name": "symbol",
"type": "text",
"primaryKey": false,
"notNull": false
},
"payload": {
"name": "payload",
"type": "jsonb",
"primaryKey": false,
"notNull": false
},
"source": {
"name": "source",
"type": "text",
"primaryKey": false,
"notNull": false
},
"at": {
"name": "at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {
"fact_events_round_id_idx": {
"name": "fact_events_round_id_idx",
"columns": [
{
"expression": "round_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"fact_events_round_kind_idx": {
"name": "fact_events_round_kind_idx",
"columns": [
{
"expression": "round_id",
"isExpression": false,
"asc": true,
"nulls": "last"
},
{
"expression": "kind",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"fact_events_round_id_trading_rounds_id_fk": {
"name": "fact_events_round_id_trading_rounds_id_fk",
"tableFrom": "fact_events",
"tableTo": "trading_rounds",
"columnsFrom": [
"round_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.rd_experiments": {
"name": "rd_experiments",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigserial",
"primaryKey": true,
"notNull": true
},
"experiment_name": {
"name": "experiment_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"rational": {
"name": "rational",
"type": "text",
"primaryKey": false,
"notNull": true
},
"rational_embedding": {
"name": "rational_embedding",
"type": "vector(384)",
"primaryKey": false,
"notNull": false
},
"details": {
"name": "details",
"type": "text",
"primaryKey": false,
"notNull": false
},
"details_embedding": {
"name": "details_embedding",
"type": "vector(384)",
"primaryKey": false,
"notNull": false
},
"evaluation": {
"name": "evaluation",
"type": "text",
"primaryKey": false,
"notNull": false
},
"metrics": {
"name": "metrics",
"type": "jsonb",
"primaryKey": false,
"notNull": false
},
"evolved_from": {
"name": "evolved_from",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"start_ts": {
"name": "start_ts",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"end_ts": {
"name": "end_ts",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"git_branch": {
"name": "git_branch",
"type": "text",
"primaryKey": false,
"notNull": true
},
"experiment_ref_id": {
"name": "experiment_ref_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"mlruns_dir": {
"name": "mlruns_dir",
"type": "text",
"primaryKey": false,
"notNull": false
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'starting'"
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {
"rd_experiments_ref_id_idx": {
"name": "rd_experiments_ref_id_idx",
"columns": [
{
"expression": "experiment_ref_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"rd_experiments_evolved_from_idx": {
"name": "rd_experiments_evolved_from_idx",
"columns": [
{
"expression": "evolved_from",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"rd_experiments_evolved_from_rd_experiments_id_fk": {
"name": "rd_experiments_evolved_from_rd_experiments_id_fk",
"tableFrom": "rd_experiments",
"tableTo": "rd_experiments",
"columnsFrom": [
"evolved_from"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.rd_models": {
"name": "rd_models",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigserial",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"description": {
"name": "description",
"type": "text",
"primaryKey": false,
"notNull": false
},
"experiment_name": {
"name": "experiment_name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"run_id": {
"name": "run_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"model_path": {
"name": "model_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"universe": {
"name": "universe",
"type": "text",
"primaryKey": false,
"notNull": false
},
"label": {
"name": "label",
"type": "text",
"primaryKey": false,
"notNull": false
},
"default_strategy": {
"name": "default_strategy",
"type": "text",
"primaryKey": false,
"notNull": false
},
"metrics": {
"name": "metrics",
"type": "jsonb",
"primaryKey": false,
"notNull": false
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'active'"
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {
"rd_models_run_id_idx": {
"name": "rd_models_run_id_idx",
"columns": [
{
"expression": "run_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"rd_models_name_idx": {
"name": "rd_models_name_idx",
"columns": [
{
"expression": "name",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {
"rd_models_name_unique": {
"name": "rd_models_name_unique",
"nullsNotDistinct": false,
"columns": [
"name"
]
}
},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.round_decisions": {
"name": "round_decisions",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigserial",
"primaryKey": true,
"notNull": true
},
"round_id": {
"name": "round_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"intent_id": {
"name": "intent_id",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"symbol": {
"name": "symbol",
"type": "text",
"primaryKey": false,
"notNull": true
},
"side": {
"name": "side",
"type": "text",
"primaryKey": false,
"notNull": true
},
"qty": {
"name": "qty",
"type": "numeric",
"primaryKey": false,
"notNull": false
},
"order_type": {
"name": "order_type",
"type": "text",
"primaryKey": false,
"notNull": false
},
"expected_price": {
"name": "expected_price",
"type": "numeric",
"primaryKey": false,
"notNull": false
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'intended'"
},
"reason": {
"name": "reason",
"type": "text",
"primaryKey": false,
"notNull": false
},
"reason_detail": {
"name": "reason_detail",
"type": "text",
"primaryKey": false,
"notNull": false
},
"superseded_by_decision_id": {
"name": "superseded_by_decision_id",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {
"round_decisions_round_id_idx": {
"name": "round_decisions_round_id_idx",
"columns": [
{
"expression": "round_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"round_decisions_round_symbol_idx": {
"name": "round_decisions_round_symbol_idx",
"columns": [
{
"expression": "round_id",
"isExpression": false,
"asc": true,
"nulls": "last"
},
{
"expression": "symbol",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"round_decisions_intent_id_idx": {
"name": "round_decisions_intent_id_idx",
"columns": [
{
"expression": "intent_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"round_decisions_round_id_trading_rounds_id_fk": {
"name": "round_decisions_round_id_trading_rounds_id_fk",
"tableFrom": "round_decisions",
"tableTo": "trading_rounds",
"columnsFrom": [
"round_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"round_decisions_intent_id_round_intents_id_fk": {
"name": "round_decisions_intent_id_round_intents_id_fk",
"tableFrom": "round_decisions",
"tableTo": "round_intents",
"columnsFrom": [
"intent_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"round_decisions_superseded_by_round_decisions_id_fk": {
"name": "round_decisions_superseded_by_round_decisions_id_fk",
"tableFrom": "round_decisions",
"tableTo": "round_decisions",
"columnsFrom": [
"superseded_by_decision_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.round_intents": {
"name": "round_intents",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigserial",
"primaryKey": true,
"notNull": true
},
"round_id": {
"name": "round_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"version": {
"name": "version",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"supersedes_intent_id": {
"name": "supersedes_intent_id",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"target_portfolio": {
"name": "target_portfolio",
"type": "jsonb",
"primaryKey": false,
"notNull": false
},
"raw_strategy_output": {
"name": "raw_strategy_output",
"type": "jsonb",
"primaryKey": false,
"notNull": false
},
"reason": {
"name": "reason",
"type": "text",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {
"round_intents_round_id_idx": {
"name": "round_intents_round_id_idx",
"columns": [
{
"expression": "round_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"round_intents_round_version_idx": {
"name": "round_intents_round_version_idx",
"columns": [
{
"expression": "round_id",
"isExpression": false,
"asc": true,
"nulls": "last"
},
{
"expression": "version",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"round_intents_round_id_trading_rounds_id_fk": {
"name": "round_intents_round_id_trading_rounds_id_fk",
"tableFrom": "round_intents",
"tableTo": "trading_rounds",
"columnsFrom": [
"round_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"round_intents_supersedes_intent_id_round_intents_id_fk": {
"name": "round_intents_supersedes_intent_id_round_intents_id_fk",
"tableFrom": "round_intents",
"tableTo": "round_intents",
"columnsFrom": [
"supersedes_intent_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.round_orders": {
"name": "round_orders",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigserial",
"primaryKey": true,
"notNull": true
},
"decision_id": {
"name": "decision_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"round_id": {
"name": "round_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"alpaca_order_id": {
"name": "alpaca_order_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"client_order_id": {
"name": "client_order_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"qty_intended": {
"name": "qty_intended",
"type": "numeric",
"primaryKey": false,
"notNull": false
},
"qty_filled": {
"name": "qty_filled",
"type": "numeric",
"primaryKey": false,
"notNull": true,
"default": "'0'"
},
"avg_fill_price": {
"name": "avg_fill_price",
"type": "numeric",
"primaryKey": false,
"notNull": false
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'accepted'"
},
"superseded_by_order_id": {
"name": "superseded_by_order_id",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {
"round_orders_round_id_idx": {
"name": "round_orders_round_id_idx",
"columns": [
{
"expression": "round_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"round_orders_decision_id_idx": {
"name": "round_orders_decision_id_idx",
"columns": [
{
"expression": "decision_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"round_orders_alpaca_order_id_idx": {
"name": "round_orders_alpaca_order_id_idx",
"columns": [
{
"expression": "alpaca_order_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"round_orders_round_id_trading_rounds_id_fk": {
"name": "round_orders_round_id_trading_rounds_id_fk",
"tableFrom": "round_orders",
"tableTo": "trading_rounds",
"columnsFrom": [
"round_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"round_orders_decision_id_round_decisions_id_fk": {
"name": "round_orders_decision_id_round_decisions_id_fk",
"tableFrom": "round_orders",
"tableTo": "round_decisions",
"columnsFrom": [
"decision_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"round_orders_superseded_by_round_orders_id_fk": {
"name": "round_orders_superseded_by_round_orders_id_fk",
"tableFrom": "round_orders",
"tableTo": "round_orders",
"columnsFrom": [
"superseded_by_order_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.scheduler_jobs": {
"name": "scheduler_jobs",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigserial",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"city": {
"name": "city",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'new-york'"
},
"timezone": {
"name": "timezone",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'America/New_York'"
},
"time": {
"name": "time",
"type": "text",
"primaryKey": false,
"notNull": true
},
"days": {
"name": "days",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'1,2,3,4,5'"
},
"experiment_name": {
"name": "experiment_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"run_id": {
"name": "run_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"model_id": {
"name": "model_id",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"strategy": {
"name": "strategy",
"type": "text",
"primaryKey": false,
"notNull": false
},
"enabled": {
"name": "enabled",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": true
},
"last_run_at": {
"name": "last_run_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"last_status": {
"name": "last_status",
"type": "text",
"primaryKey": false,
"notNull": false
},
"last_error": {
"name": "last_error",
"type": "text",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {
"scheduler_jobs_model_id_idx": {
"name": "scheduler_jobs_model_id_idx",
"columns": [
{
"expression": "model_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"scheduler_jobs_enabled_idx": {
"name": "scheduler_jobs_enabled_idx",
"columns": [
{
"expression": "enabled",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"scheduler_jobs_model_id_rd_models_id_fk": {
"name": "scheduler_jobs_model_id_rd_models_id_fk",
"tableFrom": "scheduler_jobs",
"tableTo": "rd_models",
"columnsFrom": [
"model_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.scheduler_runs": {
"name": "scheduler_runs",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigserial",
"primaryKey": true,
"notNull": true
},
"job_id": {
"name": "job_id",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"city": {
"name": "city",
"type": "text",
"primaryKey": false,
"notNull": true
},
"model_id": {
"name": "model_id",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"strategy": {
"name": "strategy",
"type": "text",
"primaryKey": false,
"notNull": false
},
"title": {
"name": "title",
"type": "text",
"primaryKey": false,
"notNull": true
},
"session_id": {
"name": "session_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'pending'"
},
"error": {
"name": "error",
"type": "text",
"primaryKey": false,
"notNull": false
},
"source": {
"name": "source",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'scheduled'"
},
"triggered_at": {
"name": "triggered_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {
"scheduler_runs_job_id_idx": {
"name": "scheduler_runs_job_id_idx",
"columns": [
{
"expression": "job_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"scheduler_runs_session_id_idx": {
"name": "scheduler_runs_session_id_idx",
"columns": [
{
"expression": "session_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.trading_rounds": {
"name": "trading_rounds",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigserial",
"primaryKey": true,
"notNull": true
},
"source": {
"name": "source",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'scheduled'"
},
"target_date": {
"name": "target_date",
"type": "date",
"primaryKey": false,
"notNull": true
},
"signal_date": {
"name": "signal_date",
"type": "date",
"primaryKey": false,
"notNull": false
},
"scheduler_run_id": {
"name": "scheduler_run_id",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"rd_experiment_id": {
"name": "rd_experiment_id",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"experiment_name": {
"name": "experiment_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"run_id": {
"name": "run_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"model_path": {
"name": "model_path",
"type": "text",
"primaryKey": false,
"notNull": false
},
"strategy_snapshot": {
"name": "strategy_snapshot",
"type": "jsonb",
"primaryKey": false,
"notNull": false
},
"account_equity_at_sizing": {
"name": "account_equity_at_sizing",
"type": "numeric",
"primaryKey": false,
"notNull": false
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'open'"
},
"locked_intent_id": {
"name": "locked_intent_id",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"summary_metrics": {
"name": "summary_metrics",
"type": "jsonb",
"primaryKey": false,
"notNull": false
},
"feedback_note": {
"name": "feedback_note",
"type": "text",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {
"trading_rounds_target_date_idx": {
"name": "trading_rounds_target_date_idx",
"columns": [
{
"expression": "target_date",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"trading_rounds_scheduler_run_id_idx": {
"name": "trading_rounds_scheduler_run_id_idx",
"columns": [
{
"expression": "scheduler_run_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"trading_rounds_rd_experiment_id_idx": {
"name": "trading_rounds_rd_experiment_id_idx",
"columns": [
{
"expression": "rd_experiment_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"trading_rounds_locked_intent_id_idx": {
"name": "trading_rounds_locked_intent_id_idx",
"columns": [
{
"expression": "locked_intent_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"trading_rounds_scheduler_run_id_scheduler_runs_id_fk": {
"name": "trading_rounds_scheduler_run_id_scheduler_runs_id_fk",
"tableFrom": "trading_rounds",
"tableTo": "scheduler_runs",
"columnsFrom": [
"scheduler_run_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"trading_rounds_rd_experiment_id_rd_experiments_id_fk": {
"name": "trading_rounds_rd_experiment_id_rd_experiments_id_fk",
"tableFrom": "trading_rounds",
"tableTo": "rd_experiments",
"columnsFrom": [
"rd_experiment_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
}
},
"enums": {},
"schemas": {},
"sequences": {},
"roles": {},
"policies": {},
"views": {},
"_meta": {
"columns": {},
"schemas": {},
"tables": {}
}
}