fix: removed some unused database attributes

This commit is contained in:
silver 2023-10-26 00:45:14 +01:00
parent 20d79e427a
commit 5267c588c4
2 changed files with 2 additions and 19 deletions

View file

@ -54,10 +54,8 @@ pub struct AccountsSSH {
pub struct Accounts {
pub user: String,
pub uid: i64,
pub discord: Option<String>,
pub mail: String,
pub student_id: String,
pub enabled: bool,
pub secure: bool,
}
@ -135,10 +133,8 @@ pub async fn db_init(config: &Config) -> Result<Pool<Sqlite>, Error> {
"CREATE TABLE IF NOT EXISTS accounts (
user text PRIMARY KEY,
uid integer NOT NULL,
discord text,
mail text NOT NULL,
student_id text NOT NULL,
enabled integer NOT NULL,
secure integer NOT NULL
)",
)