{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://shapes.penny.coop/consent-record/1.0.0/schema.json",
  "title": "Consent record",
  "description": "A link to a consent form and the timestamp at which consent was recorded.",
  "type": "object",
  "properties": {
    "consentForm": {
      "title": "Consent form",
      "type": "string",
      "description": "A project-local record reference, normally typeName/recordId. The referenced record is not embedded.",
      "x-penny": {
        "field": "reference",
        "to": [
          "consentForm"
        ]
      }
    },
    "consentedAt": {
      "title": "Consented at",
      "type": "string",
      "format": "date-time",
      "x-penny": {
        "field": "datetime",
        "input": "datetime"
      }
    }
  },
  "required": [
    "consentForm",
    "consentedAt"
  ],
  "x-penny": {
    "shape": "consent-record",
    "version": "1.0.0",
    "source": "app/types/consentRecord.js",
    "sourceName": "consentRecord",
    "kind": "object",
    "defaultVisibility": "private",
    "publishable": false,
    "fieldOrder": [
      "consentForm",
      "consentedAt"
    ]
  }
}
