From b9d637665cd1e902747cdf178fe99e22860cb94d Mon Sep 17 00:00:00 2001 From: Theis Gaedigk Date: Sat, 27 Sep 2025 16:40:36 +0200 Subject: [PATCH] changed data scheme --- backend/scheme.sql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backend/scheme.sql b/backend/scheme.sql index c7b368b..505c1b6 100644 --- a/backend/scheme.sql +++ b/backend/scheme.sql @@ -58,6 +58,15 @@ CREATE TABLE `lockers` ( UNIQUE KEY `locker_number` (`locker_number`) ); +CREATE TABLE `apiKeys` ( + `id` int NOT NULL AUTO_INCREMENT, + `apiKey` int NOT NULL UNIQUE, + `user` VARCHAR(255) NOT NULL, + `entry_created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, + PRIMARY KEY (`id`), + UNIQUE KEY `apiKey` (`apiKey`) +); + INSERT INTO `items` (`item_name`, `can_borrow_role`, `inSafe`) VALUES ('DJI 1er Mikro', 4, 1), ('DJI 2er Mikro 1', 4, 1),