user model: added enabled column

This commit is contained in:
Albert S. 2019-05-03 15:56:08 +02:00
父節點 632f689b3e
當前提交 2f7a87ce6d
共有 2 個文件被更改,包括 2 次插入1 次删除

查看文件

@ -1,6 +1,6 @@
CREATE TABLE page(id INTEGER PRIMARY KEY, name varchar(256), lastrevision integer, visible integer DEFAULT 1);
CREATE TABLE user(id INTEGER PRIMARY KEY,username varchar(64),
password blob, salt blob, permissions integer);
password blob, salt blob, permissions integer, enabled integer DEFAULT 1);
CREATE TABLE session(id INTEGER PRIMARY KEY, csrf_token varchar(32),
creationtime date, userid integer , token varchar(32));
CREATE TABLE permissions(id INTEGER PRIMARY KEY, permissions integer,

1
user.h
查看文件

@ -17,6 +17,7 @@ class User
std::string login;
std::vector<char> password;
std::vector<char> salt;
bool enabled;
Permissions permissions;
User();
};