{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/procurement/vendor_guarantee.schema.json","title":"vendor_guarantee","type":"object","properties":{"guarantee_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"equipment_uid":{"type":"string","format":"uuid","x-pg-type":"uuid"},"vendor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int4"},"vendor_quote_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int4"},"metric":{"type":"string","x-pg-type":"text"},"guaranteed_value":{"type":"number","x-pg-type":"float8"},"guaranteed_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"guarantee_condition":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"guarantee_period_months":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int4"},"contractual_penalty":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"measurement_protocol":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"contract_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"source_quote_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"recorded_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"}},"x-table-schema":"public","required":["equipment_uid","metric","guaranteed_value"],"x-primary-key":["guarantee_id"],"x-foreign-keys":[{"column":"vendor_id","references_table":"vendor","references_column":"id","constraint":"vendor_guarantee_vendor_id_fkey"},{"column":"vendor_quote_id","references_table":"vendor_quote","references_column":"id","constraint":"vendor_guarantee_vendor_quote_id_fkey"}]}