Add new vendors, brands, categories tables and calculate scripts

This commit is contained in:
2025-04-01 01:12:03 -04:00
parent 97296946f1
commit a9dbbbf824
11 changed files with 452 additions and 39 deletions

View File

@@ -1,22 +1,6 @@
-- -- Configuration tables schema
-- -- Create function for updating timestamps if it doesn't exist
-- CREATE OR REPLACE FUNCTION update_updated_column()
-- RETURNS TRIGGER AS $$
-- BEGIN
-- NEW.updated = CURRENT_TIMESTAMP;
-- RETURN NEW;
-- END;
-- $$ language 'plpgsql';
-- -- Create function for updating updated_at timestamps
-- CREATE OR REPLACE FUNCTION update_updated_at_column()
-- RETURNS TRIGGER AS $$
-- BEGIN
-- NEW.updated_at = CURRENT_TIMESTAMP;
-- RETURN NEW;
-- END;
-- $$ language 'plpgsql';
-- -- Stock threshold configurations
-- CREATE TABLE stock_thresholds (