{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/tally_accounting/tally_voucher_line_batch_allocation.schema.json","title":"tally_voucher_line_batch_allocation","type":"object","properties":{"batch_allocation_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"voucher_line_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"allocation_number":{"type":"integer","x-pg-type":"int4"},"godown_name":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"tracking_number":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"actual_qty":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"billed_qty":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"quantity_unit":{"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"}},"x-table-schema":"public","required":["voucher_line_id","allocation_number"],"x-primary-key":["batch_allocation_id"],"x-foreign-keys":[{"column":"voucher_line_id","references_table":"tally_voucher_line","references_column":"voucher_line_id","constraint":"tally_voucher_line_batch_allocation_voucher_line_id_fkey"}]}