fix: make username and email unique
This commit is contained in:
parent
ac11a8ee5b
commit
8197df406a
@ -6,7 +6,8 @@ pub fn init(conn: &Connection) -> Result<()> {
|
|||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
username TEXT,
|
username TEXT,
|
||||||
email TEXT,
|
email TEXT,
|
||||||
password TEXT
|
password TEXT,
|
||||||
|
UNIQUE(username, email)
|
||||||
)",
|
)",
|
||||||
(),
|
(),
|
||||||
)?;
|
)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user