start working on User and Group classes

- User and Group has been moved to 'models' directory
- removed UserPass struct (passwords fields were put to User struct)
not working yet, we need support for binary blobs in morm
This commit is contained in:
2021-04-30 01:34:48 +02:00
parent ccda2bc2fd
commit 4277f90bad
29 changed files with 363 additions and 200 deletions

View File

@@ -41,8 +41,8 @@
#include <ctime>
#include <cstring>
#include "dbbase.h"
#include "core/user.h"
#include "core/group.h"
#include "models/user.h"
#include "models/group.h"
#include "core/dircontainer.h"
#include "core/ugcontainer.h"
@@ -55,6 +55,7 @@ class Db : public DbBase
{
public:
Db()
{
is_postgresql_smaller_than_10 = false;
@@ -62,6 +63,7 @@ public:
void PostgreSQLsmallerThan10(bool is_smaller_than_10);
/*
bool GetUserPass(const std::wstring & login, long & user_id, UserPass & up);
Error AddUser(User & user, const UserPass & up);
Error ChangeUserPass(long user_id, const UserPass & up);
@@ -80,8 +82,12 @@ public:
protected:
DbTextStream query, query_create_url;
bool is_postgresql_smaller_than_10;
*/
std::wstring postgrsql_row_statement;
bool is_postgresql_smaller_than_10;
};