added delete function to product table

This commit is contained in:
2026-05-29 23:04:41 +02:00
parent 6bacd1c605
commit 9cab32ddea
6 changed files with 97 additions and 8 deletions
+1
View File
@@ -35,6 +35,7 @@ CREATE TABLE IF NOT EXISTS products (
picture VARCHAR(500) DEFAULT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
deleted BOOLEAN DEFAULT FALSE NOT NULL,
FOREIGN KEY (storage_location) REFERENCES storage_locations(uuid) ON DELETE CASCADE
);