{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/financekey/json-schema/financekey-finance-key-entity-contact-pkg-contact-schema.json",
  "title": "FinanceKey.Entity.ContactPkg.Contact",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/financekey-contacts-api-openapi.yml#/components/schemas/FinanceKey.Entity.ContactPkg.Contact",
  "type": "object",
  "properties": {
    "createdById": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The identity of the account that created the initial record.",
      "format": "int32",
      "readOnly": true
    },
    "createdOn": {
      "type": "string",
      "description": "The date and time the record was initially created.",
      "format": "date-time",
      "readOnly": true
    },
    "updatedById": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The identity of the account that last modified the record.",
      "format": "int32",
      "readOnly": true
    },
    "updateOn": {
      "type": "string",
      "description": "The date and time the record was last modified.",
      "format": "date-time",
      "readOnly": true
    },
    "closedById": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The identity of the account that deactivated and closed the record.",
      "format": "int32",
      "readOnly": true
    },
    "closedOn": {
      "type": "string",
      "description": "The date and time the record is to be considered as inactive and closed.",
      "format": "date-time",
      "readOnly": true
    },
    "active": {
      "type": "boolean",
      "description": "A flag that shows if the record is currently active. This values is calculated based on the current date and the record closed date.",
      "readOnly": true
    },
    "rowVersion": {
      "type": [
        "string",
        "null"
      ],
      "description": "A unique version stamp of the record.",
      "format": "byte",
      "readOnly": true
    },
    "sessionId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The identity of the session that last modified the record.",
      "readOnly": true
    },
    "contactId": {
      "type": "integer",
      "description": "The ContactId field is an integer data type used to uniquely identify each contact in the Contact table.",
      "format": "int32",
      "readOnly": true
    },
    "personId": {
      "type": "integer",
      "description": "PersonId of data type int in the Contact table is a unique identifier for each Person record created in the table. Each PersonId is a positive integer that is automatically generated in ascending numerical order, beginning at 1 and increasing for each new record created.",
      "format": "int32"
    },
    "contactRoleId": {
      "type": "integer",
      "description": "The ContactRoleId field of data type int in the Contact table records the unique identifier of a specific role that the contact has with the organization, such as a customer or an employee.",
      "format": "int32"
    },
    "parentId": {
      "maxLength": 450,
      "type": [
        "string",
        "null"
      ],
      "description": "The ParentId field in the Contact table is used to reference the ID of the contact's parent record. It is an nvarchar data type field with a maximum length of 450."
    },
    "comment": {
      "type": [
        "string",
        "null"
      ],
      "description": "Miscellaneous notes and information for the entry or record."
    }
  },
  "additionalProperties": false
}