Add new vendors, brands, categories tables and calculate scripts
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user