Unique username constraint on users table
This commit is contained in:
parent
06076f93b7
commit
60e7b73f66
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
CREATE TABLE IF NOT EXISTS users (
|
CREATE TABLE IF NOT EXISTS users (
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
username VARCHAR(255) NOT NULL,
|
username VARCHAR(255) NOT NULL UNIQUE,
|
||||||
password VARCHAR(255) NOT NULL
|
password VARCHAR(255) NOT NULL
|
||||||
);
|
);
|
Loading…
Reference in a new issue