From a3f276fbdd19be885ccbbd4002618f52c72453fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joe=20Ku=CC=88ng?= Date: Thu, 27 Apr 2023 11:04:23 +0200 Subject: [PATCH] db username unique --- src/main/resources/mysql.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/mysql.sql b/src/main/resources/mysql.sql index 130328d..0bfef7e 100644 --- a/src/main/resources/mysql.sql +++ b/src/main/resources/mysql.sql @@ -30,7 +30,7 @@ create table if not exists User ( id int not null auto_increment, name varchar(45) not null, - username varchar(100) not null, + username varchar(100) not null unique, password varchar(100) not null, primary key (id) );