Dev/v1.0 (#1)

Co-authored-by: ISMAIL MASSERAN <topaz@Mac.dlinkrouter.local>
Co-authored-by: ISMAIL MASSERAN <topaz@ISMAILs-Macbook.local>
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2026-07-23 10:51:04 +08:00
parent 3189e3a1e3
commit 85b31e9528
106 changed files with 19492 additions and 401 deletions
@@ -0,0 +1,19 @@
BEGIN;
CREATE TABLE IF NOT EXISTS advertisement
(
id INTEGER PRIMARY KEY AUTO_INCREMENT,
tenant_id INTEGER NOT NULL,
title VARCHAR(255) NULL,
media_type VARCHAR(32) NOT NULL,
file_name VARCHAR(512) NOT NULL,
content_type VARCHAR(128) NOT NULL,
storage_path VARCHAR(1024) NOT NULL,
sort_order INTEGER NOT NULL DEFAULT 0,
active BOOL NOT NULL DEFAULT TRUE,
duration_seconds INTEGER NOT NULL DEFAULT 10,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT FK_advertisement_tenant FOREIGN KEY (tenant_id) REFERENCES tenant (id)
);
COMMIT;