task-d.7.11

This commit is contained in:
phaichayon
2026-07-03 14:46:42 +07:00
parent 9c8d6a0d6d
commit 15c56efc8b
20 changed files with 1790 additions and 5983 deletions

View File

@@ -1,5 +1,5 @@
{
"id": "6eb8d614-2b85-48c3-919e-af8fa13f0fb6",
"id": "cdc9d738-9191-4a58-96bc-66ac8bdb7d7f",
"prevId": "00000000-0000-0000-0000-000000000000",
"version": "7",
"dialect": "postgresql",
@@ -3045,6 +3045,12 @@
"primaryKey": false,
"notNull": false
},
"lead_channel": {
"name": "lead_channel",
"type": "text",
"primaryKey": false,
"notNull": false
},
"product_type": {
"name": "product_type",
"type": "text",
@@ -3073,8 +3079,7 @@
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'new_job'"
"notNull": true
},
"followup_status": {
"name": "followup_status",
@@ -3307,6 +3312,18 @@
"primaryKey": false,
"notNull": false
},
"project_close_date": {
"name": "project_close_date",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"delivery_date": {
"name": "delivery_date",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"competitor": {
"name": "competitor",
"type": "text",
@@ -3332,6 +3349,20 @@
"notNull": true,
"default": false
},
"hot_project_auto_suggested": {
"name": "hot_project_auto_suggested",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false
},
"hot_project_manually_overridden": {
"name": "hot_project_manually_overridden",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false
},
"is_active": {
"name": "is_active",
"type": "boolean",
@@ -4526,6 +4557,18 @@
"primaryKey": false,
"notNull": false
},
"project_close_date": {
"name": "project_close_date",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"delivery_date": {
"name": "delivery_date",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"is_hot_project": {
"name": "is_hot_project",
"type": "boolean",
@@ -4533,6 +4576,20 @@
"notNull": true,
"default": false
},
"hot_project_auto_suggested": {
"name": "hot_project_auto_suggested",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false
},
"hot_project_manually_overridden": {
"name": "hot_project_manually_overridden",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false
},
"competitor": {
"name": "competitor",
"type": "text",
@@ -5576,6 +5633,433 @@
"checkConstraints": {},
"isRLSEnabled": false
},
"public.seed_manifest_items": {
"name": "seed_manifest_items",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"seed_manifest_id": {
"name": "seed_manifest_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"item_key": {
"name": "item_key",
"type": "text",
"primaryKey": false,
"notNull": true
},
"source_file": {
"name": "source_file",
"type": "text",
"primaryKey": false,
"notNull": true
},
"checksum": {
"name": "checksum",
"type": "text",
"primaryKey": false,
"notNull": true
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'pending'"
},
"imported_count": {
"name": "imported_count",
"type": "integer",
"primaryKey": false,
"notNull": true,
"default": 0
},
"updated_count": {
"name": "updated_count",
"type": "integer",
"primaryKey": false,
"notNull": true,
"default": 0
},
"skipped_count": {
"name": "skipped_count",
"type": "integer",
"primaryKey": false,
"notNull": true,
"default": 0
},
"error_count": {
"name": "error_count",
"type": "integer",
"primaryKey": false,
"notNull": true,
"default": 0
},
"warning_count": {
"name": "warning_count",
"type": "integer",
"primaryKey": false,
"notNull": true,
"default": 0
},
"report_json": {
"name": "report_json",
"type": "jsonb",
"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": {
"seed_manifest_items_manifest_item_idx": {
"name": "seed_manifest_items_manifest_item_idx",
"columns": [
{
"expression": "seed_manifest_id",
"isExpression": false,
"asc": true,
"nulls": "last"
},
{
"expression": "item_key",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": true,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.seed_manifests": {
"name": "seed_manifests",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"setup_run_id": {
"name": "setup_run_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"organization_id": {
"name": "organization_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"version": {
"name": "version",
"type": "text",
"primaryKey": false,
"notNull": true
},
"type": {
"name": "type",
"type": "text",
"primaryKey": false,
"notNull": true
},
"checksum": {
"name": "checksum",
"type": "text",
"primaryKey": false,
"notNull": true
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'pending'"
},
"source": {
"name": "source",
"type": "text",
"primaryKey": false,
"notNull": true
},
"applied_by": {
"name": "applied_by",
"type": "text",
"primaryKey": false,
"notNull": false
},
"applied_at": {
"name": "applied_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"report_json": {
"name": "report_json",
"type": "jsonb",
"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": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.setup_run_steps": {
"name": "setup_run_steps",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"setup_run_id": {
"name": "setup_run_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"step_key": {
"name": "step_key",
"type": "text",
"primaryKey": false,
"notNull": true
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'not_started'"
},
"input_hash": {
"name": "input_hash",
"type": "text",
"primaryKey": false,
"notNull": false
},
"output_json": {
"name": "output_json",
"type": "jsonb",
"primaryKey": false,
"notNull": false
},
"errors_json": {
"name": "errors_json",
"type": "jsonb",
"primaryKey": false,
"notNull": false
},
"warnings_json": {
"name": "warnings_json",
"type": "jsonb",
"primaryKey": false,
"notNull": false
},
"started_at": {
"name": "started_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"completed_at": {
"name": "completed_at",
"type": "timestamp with time zone",
"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": {
"setup_run_steps_run_step_idx": {
"name": "setup_run_steps_run_step_idx",
"columns": [
{
"expression": "setup_run_id",
"isExpression": false,
"asc": true,
"nulls": "last"
},
{
"expression": "step_key",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": true,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.setup_runs": {
"name": "setup_runs",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'not_started'"
},
"mode": {
"name": "mode",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'production'"
},
"target_organization_id": {
"name": "target_organization_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"started_by": {
"name": "started_by",
"type": "text",
"primaryKey": false,
"notNull": true
},
"completed_by": {
"name": "completed_by",
"type": "text",
"primaryKey": false,
"notNull": false
},
"started_at": {
"name": "started_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"completed_at": {
"name": "completed_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"last_error": {
"name": "last_error",
"type": "text",
"primaryKey": false,
"notNull": false
},
"metadata": {
"name": "metadata",
"type": "jsonb",
"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": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.tr_audit_logs": {
"name": "tr_audit_logs",
"schema": "",