fix: make username and email unique

This commit is contained in:
Mariano Riefolo 2024-08-10 12:14:55 +02:00
parent ac11a8ee5b
commit 8197df406a

View File

@ -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)
)", )",
(), (),
)?; )?;