{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "`\"key\": \"any\"`: a writer derives a deterministic rkey from the subject and the tax year, so a re-filed year updates the same record.",
      "key": "any",
      "record": {
        "properties": {
          "assets": {
            "description": "Total assets at the end of the year, in whole units of `currency`, as the filing reports it. May be negative.",
            "type": "integer"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "currency": {
            "default": "USD",
            "description": "ISO 4217 code of the amounts.",
            "maxLength": 3,
            "type": "string"
          },
          "expenses": {
            "description": "Total expenses for the year, in whole units of `currency`, as the filing reports it. May be negative.",
            "type": "integer"
          },
          "periodEnd": {
            "description": "The last day of the tax year (YYYY-MM-DD) when the filing states it; a fiscal year need not end in December.",
            "maxLength": 10,
            "type": "string"
          },
          "revenue": {
            "description": "Total revenue for the year, in whole units of `currency`, as the filing reports it. May be negative.",
            "type": "integer"
          },
          "subject": {
            "description": "The organization the figures are for (a pub.techne.draft.org record).",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "taxYear": {
            "description": "The tax year the figures cover, as the filing names it.",
            "maximum": 2200,
            "minimum": 1900,
            "type": "integer"
          }
        },
        "required": [
          "subject",
          "taxYear",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "One tax year of an organization's money, from its filing (for a US nonprofit, the IRS Form 990). Draft tier, PUBLIC. One record per subject per tax year, never a field overwritten each year (lexicon constitution, rule 3).",
  "id": "pub.techne.draft.financials",
  "lexicon": 1
}
