{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/procurement/project_estimate.schema.json","title":"project_estimate","type":"object","properties":{"id":{"type":"integer","x-pg-type":"int4"},"project_ref":{"type":"string","x-pg-type":"text"},"estimate_name":{"type":"string","x-pg-type":"text"},"version":{"type":"integer","x-pg-type":"int4"},"parent_estimate_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int4"},"aace_class":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"target_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int4"},"status":{"type":"string","x-pg-type":"text"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"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":["project_ref","estimate_name"],"x-primary-key":["id"],"x-foreign-keys":[{"column":"parent_estimate_id","references_table":"project_estimate","references_column":"id","constraint":"project_estimate_parent_estimate_id_fkey"}]}