{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/tally_accounting/tally_company_period.schema.json","title":"tally_company_period","type":"object","properties":{"company_period_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"company_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"period_label":{"type":"string","x-pg-type":"text"},"period_start":{"type":"string","format":"date","x-pg-type":"date"},"period_end":{"type":"string","format":"date","x-pg-type":"date"},"tally_company_number":{"type":"string","x-pg-type":"text"},"project_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"is_current":{"type":"boolean","x-pg-type":"bool"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"raw_payload":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"updated_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"}},"x-table-schema":"public","required":["company_id","period_label","period_start","period_end","tally_company_number"],"x-primary-key":["company_period_id"],"x-foreign-keys":[{"column":"company_id","references_table":"tally_company","references_column":"company_id","constraint":"tally_company_period_company_id_fkey"}]}