Add entities w/out logic

This commit is contained in:
Andrew 2020-09-10 00:43:40 +07:00
parent 1bda2c4047
commit 415ede2b91
11 changed files with 153 additions and 8 deletions

22
userentity.h Normal file
View file

@ -0,0 +1,22 @@
#ifndef USERENTITY_H
#define USERENTITY_H
#include <QString>
typedef long long pwd_type;
class UserEntity
{
QString _login;
pwd_type _password_hash;
enum UserRoleEnum {
ADMINISTRATOR = 0,
DISPATCHER = 1,
CAPTAIN = 2
} _role;
public:
UserEntity(QString login, QString password, UserEntity::UserRoleEnum role);
};
#endif // USERENTITY_H