[
  {
    "@type": "destroy",
    "object": "Domain",
    "value": { "name": "example.com" }
  },
  {
    "@type": "destroy",
    "object": "Domain",
    "value": { "name": "example.net" }
  },
  {
    "@type": "destroy",
    "object": "Account",
    "value": { "@type": "Group" }
  },
  {
    "@type": "destroy",
    "object": "DkimSignature"
  },

  {
    "@type": "create",
    "object": "Domain",
    "value": {
      "dom-a": {
        "name": "example.com",
        "description": "Primary corporate domain"
      },
      "dom-b": {
        "name": "example.net",
        "description": "Secondary domain (transactional mail)"
      }
    }
  },

  {
    "@type": "create",
    "object": "Account",
    "value": {
      "grp-sales": {
        "@type": "Group",
        "name": "sales",
        "domainId": "#dom-a",
        "description": "Sales team"
      },
      "grp-support": {
        "@type": "Group",
        "name": "support",
        "domainId": "#dom-a",
        "description": "Customer support"
      }
    }
  },

  {
    "@type": "create",
    "object": "Account",
    "value": {
      "usr-alice": {
        "@type": "User",
        "name": "alice",
        "domainId": "#dom-a",
        "credentials": {
          "0": {
            "@type": "Password",
            "secret": "$argon2id$v=19$m=19456,t=2,p=1$REPLACE_WITH_REAL_SALT$REPLACE_WITH_REAL_HASH"
          }
        },
        "memberGroupIds": {
          "#grp-sales": true
        },
        "description": "Alice Example"
      },
      "usr-bob": {
        "@type": "User",
        "name": "bob",
        "domainId": "#dom-a",
        "credentials": {
          "0": {
            "@type": "Password",
            "secret": "$argon2id$v=19$m=19456,t=2,p=1$REPLACE_WITH_REAL_SALT$REPLACE_WITH_REAL_HASH"
          }
        },
        "memberGroupIds": {
          "#grp-support": true,
          "#grp-sales": true
        },
        "description": "Bob Example"
      },
      "usr-carol": {
        "@type": "User",
        "name": "carol",
        "domainId": "#dom-b",
        "credentials": {
          "0": {
            "@type": "Password",
            "secret": "$argon2id$v=19$m=19456,t=2,p=1$REPLACE_WITH_REAL_SALT$REPLACE_WITH_REAL_HASH"
          }
        },
        "memberGroupIds": {},
        "description": "Carol Example"
      }
    }
  },

  {
    "@type": "create",
    "object": "DkimSignature",
    "value": {
      "dkim-a-ed25519": {
        "@type": "Dkim1Ed25519Sha256",
        "canonicalization": "relaxed/relaxed",
        "domainId": "#dom-a",
        "privateKey": {
          "@type": "Text",
          "secret": "-----BEGIN PRIVATE KEY-----\nREPLACE_WITH_REAL_ED25519_PRIVATE_KEY_BASE64\n-----END PRIVATE KEY-----\n"
        },
        "selector": "2026e"
      },
      "dkim-a-rsa": {
        "@type": "Dkim1RsaSha256",
        "canonicalization": "relaxed/relaxed",
        "domainId": "#dom-a",
        "privateKey": {
          "@type": "Text",
          "secret": "-----BEGIN RSA PRIVATE KEY-----\nREPLACE_WITH_REAL_RSA_PRIVATE_KEY_BASE64\n-----END RSA PRIVATE KEY-----\n"
        },
        "selector": "2026r"
      },
      "dkim-b-ed25519": {
        "@type": "Dkim1Ed25519Sha256",
        "canonicalization": "relaxed/relaxed",
        "domainId": "#dom-b",
        "privateKey": {
          "@type": "Text",
          "secret": "-----BEGIN PRIVATE KEY-----\nREPLACE_WITH_REAL_ED25519_PRIVATE_KEY_BASE64\n-----END PRIVATE KEY-----\n"
        },
        "selector": "2026e"
      }
    }
  },

  {
    "@type": "update",
    "object": "SystemSettings",
    "value": {
      "defaultDomainId": "#dom-a",
      "defaultHostname": "mail.example.com"
    }
  },

  {
    "@type": "update",
    "object": "Enterprise",
    "value": {
      "licenseKey": {
        "@type": "Value",
        "secret": "REPLACE_WITH_REAL_ENTERPRISE_LICENSE_KEY"
      },
      "apiKey": {
        "@type": "None"
      }
    }
  },

  {
    "@type": "update",
    "object": "BlobStore",
    "value": { "@type": "Default" }
  },

  {
    "@type": "update",
    "object": "InMemoryStore",
    "value": { "@type": "Default" }
  },

  {
    "@type": "update",
    "object": "SearchStore",
    "value": { "@type": "Default" }
  }
]
