{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/tally_accounting/tally_ingestion_batch.schema.json","title":"tally_ingestion_batch","type":"object","properties":{"ingestion_batch_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"company_period_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"source_method":{"type":"string","x-pg-type":"text"},"status":{"type":"string","x-pg-type":"text"},"started_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"x-pg-type":"timestamptz"},"started_by":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"record_counts":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"source_artifacts":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"}},"x-table-schema":"public","required":["company_period_id","source_method","status"],"x-primary-key":["ingestion_batch_id"],"x-foreign-keys":[{"column":"company_period_id","references_table":"tally_company_period","references_column":"company_period_id","constraint":"tally_ingestion_batch_company_period_id_fkey"}]}