fix: removed some unused database attributes
This commit is contained in:
parent
20d79e427a
commit
5267c588c4
2 changed files with 2 additions and 19 deletions
|
@ -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
|
||||
)",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue