pipekit/config/modules/rm00301.json
Paul Trowbridge dd9f89f4b5 feat: version-control pipeline definitions via export/apply
Add `pipekit export` / `pipekit apply` (pipekit/config_io.py) to serialise the
DB's config — drivers, connections, modules (+ columns, watermarks, hooks),
groups, schedules — to a git-trackable text tree under config/, and rehydrate
it. SQLite stays runtime state; definitions become diffable/reviewable/
revertible.

- config only: run_log/group_run/settings and per-run state columns excluded
- name-keyed refs (portable across databases); source_query in .sql sidecars;
  columns as real JSON arrays for line-by-line diffs
- newline-normalised so CRLF-vs-LF is never a spurious change
- apply is create/update by name; child collections fully synced; top-level
  deletes gated behind --prune; --dry-run prints the plan
- round-trip is identity (export -> apply --dry-run == nothing to do)

Commits the current config/ as the first baseline, capturing the freshly
populated columns_json for rm00101/rm00301/iv00101. Documented in SPEC.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 10:56:55 -04:00

289 lines
6.7 KiB
JSON

{
"name": "rm00301",
"source_connection": "sqlserver",
"dest_connection": "usmidsap02",
"dest_table": "gp.rm00301",
"staging_table": "pipekit_staging.rm00301",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "GP customer/salesperson/item master (broadened, migrated from /opt/sync 2026-07-21)",
"columns": [
{
"source_name": "SLPRSNID",
"source_type": "CHAR(15)",
"dest_name": "slprsnid",
"dest_type": "text",
"description": null
},
{
"source_name": "SLPRSNFN",
"source_type": "CHAR(15)",
"dest_name": "slprsnfn",
"dest_type": "text",
"description": null
},
{
"source_name": "SPRSNSLN",
"source_type": "CHAR(21)",
"dest_name": "sprsnsln",
"dest_type": "text",
"description": null
},
{
"source_name": "EMPLOYID",
"source_type": "CHAR(15)",
"dest_name": "employid",
"dest_type": "text",
"description": null
},
{
"source_name": "VENDORID",
"source_type": "CHAR(15)",
"dest_name": "vendorid",
"dest_type": "text",
"description": null
},
{
"source_name": "SPRSNSMN",
"source_type": "CHAR(15)",
"dest_name": "sprsnsmn",
"dest_type": "text",
"description": null
},
{
"source_name": "ADDRESS1",
"source_type": "CHAR(61)",
"dest_name": "address1",
"dest_type": "text",
"description": null
},
{
"source_name": "ADDRESS2",
"source_type": "CHAR(61)",
"dest_name": "address2",
"dest_type": "text",
"description": null
},
{
"source_name": "ADDRESS3",
"source_type": "CHAR(61)",
"dest_name": "address3",
"dest_type": "text",
"description": null
},
{
"source_name": "CITY",
"source_type": "CHAR(35)",
"dest_name": "city",
"dest_type": "text",
"description": null
},
{
"source_name": "STATE",
"source_type": "CHAR(29)",
"dest_name": "state",
"dest_type": "text",
"description": null
},
{
"source_name": "ZIP",
"source_type": "CHAR(11)",
"dest_name": "zip",
"dest_type": "text",
"description": null
},
{
"source_name": "COUNTRY",
"source_type": "CHAR(61)",
"dest_name": "country",
"dest_type": "text",
"description": null
},
{
"source_name": "PHONE1",
"source_type": "CHAR(21)",
"dest_name": "phone1",
"dest_type": "text",
"description": null
},
{
"source_name": "PHONE2",
"source_type": "CHAR(21)",
"dest_name": "phone2",
"dest_type": "text",
"description": null
},
{
"source_name": "PHONE3",
"source_type": "CHAR(21)",
"dest_name": "phone3",
"dest_type": "text",
"description": null
},
{
"source_name": "FAX",
"source_type": "CHAR(21)",
"dest_name": "fax",
"dest_type": "text",
"description": null
},
{
"source_name": "INACTIVE",
"source_type": "TINYINT",
"dest_name": "inactive",
"dest_type": "smallint",
"description": null
},
{
"source_name": "SALSTERR",
"source_type": "CHAR(15)",
"dest_name": "salsterr",
"dest_type": "text",
"description": null
},
{
"source_name": "COMMCODE",
"source_type": "CHAR(15)",
"dest_name": "commcode",
"dest_type": "text",
"description": null
},
{
"source_name": "COMPRCNT",
"source_type": "SMALLINT",
"dest_name": "comprcnt",
"dest_type": "smallint",
"description": null
},
{
"source_name": "STDCPRCT",
"source_type": "SMALLINT",
"dest_name": "stdcprct",
"dest_type": "smallint",
"description": null
},
{
"source_name": "COMAPPTO",
"source_type": "SMALLINT",
"dest_name": "comappto",
"dest_type": "smallint",
"description": null
},
{
"source_name": "COSTTODT",
"source_type": "NUMERIC(19,5)",
"dest_name": "costtodt",
"dest_type": "numeric",
"description": null
},
{
"source_name": "CSTLSTYR",
"source_type": "NUMERIC(19,5)",
"dest_name": "cstlstyr",
"dest_type": "numeric",
"description": null
},
{
"source_name": "TTLCOMTD",
"source_type": "NUMERIC(19,5)",
"dest_name": "ttlcomtd",
"dest_type": "numeric",
"description": null
},
{
"source_name": "TTLCOMLY",
"source_type": "NUMERIC(19,5)",
"dest_name": "ttlcomly",
"dest_type": "numeric",
"description": null
},
{
"source_name": "COMSLTDT",
"source_type": "NUMERIC(19,5)",
"dest_name": "comsltdt",
"dest_type": "numeric",
"description": null
},
{
"source_name": "COMSLLYR",
"source_type": "NUMERIC(19,5)",
"dest_name": "comsllyr",
"dest_type": "numeric",
"description": null
},
{
"source_name": "NCOMSLTD",
"source_type": "NUMERIC(19,5)",
"dest_name": "ncomsltd",
"dest_type": "numeric",
"description": null
},
{
"source_name": "NCOMSLYR",
"source_type": "NUMERIC(19,5)",
"dest_name": "ncomslyr",
"dest_type": "numeric",
"description": null
},
{
"source_name": "KPCALHST",
"source_type": "TINYINT",
"dest_name": "kpcalhst",
"dest_type": "smallint",
"description": null
},
{
"source_name": "KPERHIST",
"source_type": "TINYINT",
"dest_name": "kperhist",
"dest_type": "smallint",
"description": null
},
{
"source_name": "NOTEINDX",
"source_type": "NUMERIC(19,5)",
"dest_name": "noteindx",
"dest_type": "numeric",
"description": null
},
{
"source_name": "MODIFDT",
"source_type": "DATETIME",
"dest_name": "modifdt",
"dest_type": "timestamp without time zone",
"description": null
},
{
"source_name": "CREATDDT",
"source_type": "DATETIME",
"dest_name": "creatddt",
"dest_type": "timestamp without time zone",
"description": null
},
{
"source_name": "COMMDEST",
"source_type": "SMALLINT",
"dest_name": "commdest",
"dest_type": "smallint",
"description": null
},
{
"source_name": "DEX_ROW_TS",
"source_type": "DATETIME",
"dest_name": "dex_row_ts",
"dest_type": "timestamp without time zone",
"description": null
},
{
"source_name": "DEX_ROW_ID",
"source_type": "INT",
"dest_name": "dex_row_id",
"dest_type": "integer",
"description": null
}
],
"watermarks": [],
"hooks": []
}