added feature: That no loan can be deleted and edited changelog accordingly

This commit is contained in:
2026-04-26 19:35:48 +02:00
parent c61a283127
commit 5191871681
3 changed files with 8 additions and 3 deletions
+1
View File
@@ -27,6 +27,7 @@ CREATE TABLE loans (
loaned_items_id json NOT NULL DEFAULT ('[]'),
loaned_items_name json NOT NULL DEFAULT ('[]'),
deleted bool NOT NULL DEFAULT false,
deleted_admin bool NOT NULL DEFAULT false,
note varchar(500) DEFAULT NULL,
PRIMARY KEY (id),
CHECK (loan_code REGEXP '^[0-9]{6}$')