Unique username constraint on users table

This commit is contained in:
Imbus 2024-02-27 05:50:28 +01:00
parent 06076f93b7
commit 60e7b73f66

View file

@ -1,5 +1,5 @@
CREATE TABLE IF NOT EXISTS users (
id INTEGER PRIMARY KEY,
username VARCHAR(255) NOT NULL,
username VARCHAR(255) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL
);