version: 1
# Deployment-owned EXP baseline seed.
# Keep deploy-time EXP data here so runtime bootstrap does not depend on shared Seed ownership.
environment:
  name: exp-deploy-baseline
  base_url_env: WATCHDOG_BASE_URL
  frontend_health_path: /health
  backend_base_url_env: WATCHDOG_BACKEND_BASE_URL
  backend_health_path: /health
  artifact_root: .runtime/exp-seed/runs
  default_timeout_seconds: 30
actors:
  admin:
    username_env: WATCHDOG_ADMIN_USERNAME
    password_env: WATCHDOG_ADMIN_PASSWORD
    role: admin
lookup_records:
  - key: watchdog_admin_user
    object: User
    match:
      Username: admin@example.invalid
selectors: {}
inputs: {}
app_shells:
  - key: crm_pack_app
    source_file: configs/pingcap-crm-app-shell.json
scenes: {}
baseline_records:
  # BEGIN EXP PRODUCT CATALOG
  # Minimal, release-owned catalog for fresh EXP deployments.
  # Scenario-specific products and pricing belong in run-scoped Seed data.
  - key: exp_catalog_standard_pricebook
    object: Pricebook2
    match:
      Name: "Standard Price Book"
    fields:
      Name: "Standard Price Book"
      IsActive: true
  - key: exp_catalog_product_tidb_cloud
    object: Product2
    match:
      ProductCode: "C001"
    fields:
      Name: "TiDB Cloud"
      IsActive: true
      ProductCode: "C001"
      Family: "TiDB Cloud"
      Description: "TiDB Cloud"
  - key: exp_catalog_product_tidb_cloud_dedicated
    object: Product2
    match:
      ProductCode: "C002"
    fields:
      Name: "TiDB Cloud Dedicated"
      IsActive: true
      ProductCode: "C002"
      Family: "TiDB Cloud"
      Description: "TiDB Cloud Dedicated"
  - key: exp_catalog_product_tidb_cloud_starter
    object: Product2
    match:
      ProductCode: "C003"
    fields:
      Name: "TiDB Cloud Starter"
      IsActive: true
      ProductCode: "C003"
      Family: "TiDB Cloud"
      Description: "TiDB Cloud Starter"
  - key: exp_catalog_product_tidb_cloud_essential
    object: Product2
    match:
      ProductCode: "C004"
    fields:
      Name: "TiDB Cloud Essential"
      IsActive: true
      ProductCode: "C004"
      Family: "TiDB Cloud"
      Description: "TiDB Cloud Essential"
  - key: exp_catalog_product_tidb_cloud_premium
    object: Product2
    match:
      ProductCode: "C005"
    fields:
      Name: "TiDB Cloud Premium"
      IsActive: true
      ProductCode: "C005"
      Family: "TiDB Cloud"
      Description: "TiDB Cloud Premium"
  - key: exp_catalog_product_tidb_cloud_lake
    object: Product2
    match:
      ProductCode: "C006"
    fields:
      Name: "TiDB Cloud Lake"
      IsActive: true
      ProductCode: "C006"
      Family: "TiDB Cloud"
      Description: "TiDB Cloud Lake"
  - key: exp_catalog_product_tidb_cloud_byoc
    object: Product2
    match:
      ProductCode: "C007"
    fields:
      Name: "TiDB Cloud BYOC"
      IsActive: true
      ProductCode: "C007"
      Family: "TiDB Cloud"
      Description: "TiDB Cloud BYOC"
  - key: exp_catalog_pricebook_entry_tidb_cloud_usd
    object: PricebookEntry
    match:
      Pricebook2Id: "{{ record.exp_catalog_standard_pricebook.id }}"
      Product2Id: "{{ record.exp_catalog_product_tidb_cloud.id }}"
      CurrencyIsoCode: USD
    fields:
      Pricebook2Id: "{{ record.exp_catalog_standard_pricebook.id }}"
      Product2Id: "{{ record.exp_catalog_product_tidb_cloud.id }}"
      CurrencyIsoCode: USD
      UnitPrice: 1
      IsActive: true
      UseStandardPrice: false
  - key: exp_catalog_pricebook_entry_tidb_cloud_dedicated_usd
    object: PricebookEntry
    match:
      Pricebook2Id: "{{ record.exp_catalog_standard_pricebook.id }}"
      Product2Id: "{{ record.exp_catalog_product_tidb_cloud_dedicated.id }}"
      CurrencyIsoCode: USD
    fields:
      Pricebook2Id: "{{ record.exp_catalog_standard_pricebook.id }}"
      Product2Id: "{{ record.exp_catalog_product_tidb_cloud_dedicated.id }}"
      CurrencyIsoCode: USD
      UnitPrice: 1
      IsActive: true
      UseStandardPrice: false
  - key: exp_catalog_pricebook_entry_tidb_cloud_starter_usd
    object: PricebookEntry
    match:
      Pricebook2Id: "{{ record.exp_catalog_standard_pricebook.id }}"
      Product2Id: "{{ record.exp_catalog_product_tidb_cloud_starter.id }}"
      CurrencyIsoCode: USD
    fields:
      Pricebook2Id: "{{ record.exp_catalog_standard_pricebook.id }}"
      Product2Id: "{{ record.exp_catalog_product_tidb_cloud_starter.id }}"
      CurrencyIsoCode: USD
      UnitPrice: 1
      IsActive: true
      UseStandardPrice: false
  - key: exp_catalog_pricebook_entry_tidb_cloud_essential_usd
    object: PricebookEntry
    match:
      Pricebook2Id: "{{ record.exp_catalog_standard_pricebook.id }}"
      Product2Id: "{{ record.exp_catalog_product_tidb_cloud_essential.id }}"
      CurrencyIsoCode: USD
    fields:
      Pricebook2Id: "{{ record.exp_catalog_standard_pricebook.id }}"
      Product2Id: "{{ record.exp_catalog_product_tidb_cloud_essential.id }}"
      CurrencyIsoCode: USD
      UnitPrice: 1
      IsActive: true
      UseStandardPrice: false
  - key: exp_catalog_pricebook_entry_tidb_cloud_premium_usd
    object: PricebookEntry
    match:
      Pricebook2Id: "{{ record.exp_catalog_standard_pricebook.id }}"
      Product2Id: "{{ record.exp_catalog_product_tidb_cloud_premium.id }}"
      CurrencyIsoCode: USD
    fields:
      Pricebook2Id: "{{ record.exp_catalog_standard_pricebook.id }}"
      Product2Id: "{{ record.exp_catalog_product_tidb_cloud_premium.id }}"
      CurrencyIsoCode: USD
      UnitPrice: 1
      IsActive: true
      UseStandardPrice: false
  - key: exp_catalog_pricebook_entry_tidb_cloud_lake_usd
    object: PricebookEntry
    match:
      Pricebook2Id: "{{ record.exp_catalog_standard_pricebook.id }}"
      Product2Id: "{{ record.exp_catalog_product_tidb_cloud_lake.id }}"
      CurrencyIsoCode: USD
    fields:
      Pricebook2Id: "{{ record.exp_catalog_standard_pricebook.id }}"
      Product2Id: "{{ record.exp_catalog_product_tidb_cloud_lake.id }}"
      CurrencyIsoCode: USD
      UnitPrice: 1
      IsActive: true
      UseStandardPrice: false
  - key: exp_catalog_pricebook_entry_tidb_cloud_byoc_usd
    object: PricebookEntry
    match:
      Pricebook2Id: "{{ record.exp_catalog_standard_pricebook.id }}"
      Product2Id: "{{ record.exp_catalog_product_tidb_cloud_byoc.id }}"
      CurrencyIsoCode: USD
    fields:
      Pricebook2Id: "{{ record.exp_catalog_standard_pricebook.id }}"
      Product2Id: "{{ record.exp_catalog_product_tidb_cloud_byoc.id }}"
      CurrencyIsoCode: USD
      UnitPrice: 1
      IsActive: true
      UseStandardPrice: false
  # END EXP PRODUCT CATALOG
  - key: exp_hubspot_integration_user
    object: User
    match:
      Username: "hubspot-integration-user@example.invalid"
    fields:
      Username: "hubspot-integration-user@example.invalid"
      Email: "hubspot-integration-user@example.invalid"
      Password: "{{ env.EXP_SEED_APPLY_PASSWORD }}"
      FirstName: "HubSpot"
      LastName: "Integration"
      ProfileId: system_admin
      Alias: "hsiu"
      IsActive: true
  - key: exp_hubspot_default_owner_binding
    object: HubSpotOwnerBinding__c
    match:
      HubSpotOwnerId__c: "INTEGRATION_DEFAULT"
    fields:
      HubSpotOwnerId__c: "INTEGRATION_DEFAULT"
      BindingStatus__c: "default"
      CRMPrincipalType__c: "User"
      CRMPrincipalId__c: "{{ record.exp_hubspot_integration_user.id }}"
      SourceOfTruth__c: "manual"
  - key: staging_watchdog_connected_app_run_as
    object: _System_ConnectedApp
    match:
      ConsumerKey: nexuscrm-ui
    fields:
      Name: NexusCRM UI
      ConsumerKey: nexuscrm-ui
      ConsumerSecret: nexuscrm-ui-internal
      IsActive: true
      Scopes: api refresh_token offline_access scim
      PermittedUsers: AllUsers
      RunAsUserId: "{{ lookup.watchdog_admin_user.id }}"
