diff --git a/api/bun.lockb b/api/bun.lockb index a21aced..e499045 100755 Binary files a/api/bun.lockb and b/api/bun.lockb differ diff --git a/api/database.sql b/api/database.sql index 6394258..b2a33af 100644 --- a/api/database.sql +++ b/api/database.sql @@ -16,10 +16,5 @@ CREATE TABLE users ( password VARCHAR(255) NOT NULL, score INT UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (id), - CONSTRAINT u_user_type_id - FOREIGN KEY (user_type_id) - REFERENCES user_types(id) - ON DELETE RESTRICT - ON UPDATE CASCADE, - INDEX ur_user_type_idx (user_type_id) + INDEX ur_username_idx (username) ) ENGINE=InnoDB; \ No newline at end of file