{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/tally_accounting/tally_stock_item.schema.json","title":"tally_stock_item","type":"object","properties":{"stock_item_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"company_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"stock_item_name":{"type":"string","x-pg-type":"text"},"base_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"hsn_code":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"gst_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"opening_balance_qty":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"closing_balance_qty":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"closing_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"closing_value":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"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"},"tally_guid":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"tally_alter_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int8"},"updated_datetime":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"}},"x-table-schema":"public","required":["company_id","stock_item_name"],"x-primary-key":["stock_item_id"],"x-foreign-keys":[{"column":"company_id","references_table":"tally_company","references_column":"company_id","constraint":"tally_stock_item_company_id_fkey"}]}