mirror of
https://gitlab.com/spaceti-app/integrations/acs/colnod-connector.git
synced 2026-07-12 13:10:45 +02:00
changes which have to be don
This commit is contained in:
parent
c96832f4b8
commit
6d73a9c712
@ -18,6 +18,19 @@
|
||||
|
||||
class TokenTable : public serversdk::DatabaseTable {
|
||||
Q_OBJECT
|
||||
TABLE_PROPERTY(QUuid, id, setId, QUuid())
|
||||
TABLE_PROPERTY(int, authErorrs, setAuthErrors, 255)
|
||||
TABLE_PROPERTY(QString, description, setDescription, "")
|
||||
TABLE_PROPERTY(bool, enabled, setEnabled, true)
|
||||
TABLE_PROPERTY(QDateTime, lastUpdate, setLastUpdate, QDateTime())
|
||||
TABLE_PROPERTY(QString, name, setName, "")
|
||||
TABLE_PROPERTY(bool, noValidity, setNoValidity, true)
|
||||
TABLE_PROPERTY(int, timeToLive, setTimeToLive, 255)
|
||||
TABLE_PROPERTY(int, tokenBits, setTokenBits, 32)
|
||||
TABLE_PROPERTY(QString, tokenType, setTokenType, "Token")
|
||||
TABLE_PROPERTY(QUuid, subjectId, setSubjectId, QUuid())
|
||||
TABLE_PROPERTY(QDateTime, lastModified, setLastModified, QDateTime())
|
||||
TABLE_PROPERTY(bool, deleted, setDeleted, false)
|
||||
};
|
||||
|
||||
class DatabaseAPI : public QObject
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
#include <QDebug>
|
||||
#include <memory>
|
||||
|
||||
|
||||
// NOTE: it will be no longer useful
|
||||
class Entity : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
@ -7,8 +7,10 @@
|
||||
#include <QPointer>
|
||||
#include <QPair>
|
||||
|
||||
class Subject : public Entity {
|
||||
|
||||
// TODO: make it inherited from serversdk::databaseTable
|
||||
class Subject : public Entity {
|
||||
// TODO: add all properties
|
||||
public:
|
||||
using Entity::Entity;
|
||||
Subject() = default;
|
||||
|
||||
@ -7,7 +7,11 @@
|
||||
#include <QDebug>
|
||||
#include <QDateTime>
|
||||
|
||||
|
||||
// TODO: make it inherited from serversdk::databaseTable
|
||||
class Token : public Entity {
|
||||
|
||||
// TODO: add all properties
|
||||
public:
|
||||
// using Entity::Entity;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user