{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/project_finance/document_attachment.schema.json","title":"document_attachment","type":"object","properties":{"attachment_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"entity_type":{"type":"string","x-pg-type":"text"},"entity_id":{"type":"string","x-pg-type":"text"},"document_id":{"type":"string","x-pg-type":"text"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"original_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"source_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"checksum_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int4"},"attached_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"x-pg-type":"timestamptz"},"attached_by":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"}},"x-table-schema":"public","required":["entity_type","entity_id","document_id"],"x-primary-key":["attachment_id"]}