{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/tally_accounting/tally_report_snapshot.schema.json","title":"tally_report_snapshot","type":"object","properties":{"report_snapshot_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"company_period_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"ingestion_batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"report_type":{"type":"string","x-pg-type":"text"},"as_of_date":{"type":"string","format":"date","x-pg-type":"date"},"period_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"x-pg-type":"date"},"period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"x-pg-type":"date"},"currency":{"type":"string","x-pg-type":"text"},"page_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int4"},"source_artifact_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"raw_payload":{"x-pg-type":"jsonb"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"}},"x-table-schema":"public","required":["company_period_id","report_type","as_of_date","raw_payload"],"x-primary-key":["report_snapshot_id"],"x-foreign-keys":[{"column":"company_period_id","references_table":"tally_company_period","references_column":"company_period_id","constraint":"tally_report_snapshot_company_period_id_fkey"},{"column":"ingestion_batch_id","references_table":"tally_ingestion_batch","references_column":"ingestion_batch_id","constraint":"tally_report_snapshot_ingestion_batch_id_fkey"}]}