|
@@ -15,6 +15,7 @@ from datetime import datetime
|
15
|
15
|
from hashlib import sha256
|
16
|
16
|
from typing import TYPE_CHECKING
|
17
|
17
|
|
|
18
|
+import sqlalchemy
|
18
|
19
|
from sqlalchemy import Column
|
19
|
20
|
from sqlalchemy import ForeignKey
|
20
|
21
|
from sqlalchemy import Sequence
|
|
@@ -135,6 +136,7 @@ class User(DeclarativeBase):
|
135
|
136
|
_password = Column('password', Unicode(128))
|
136
|
137
|
created = Column(DateTime, default=datetime.utcnow)
|
137
|
138
|
is_active = Column(Boolean, default=True, nullable=False)
|
|
139
|
+ is_deleted = Column(Boolean, default=False, nullable=False, server_default=sqlalchemy.sql.expression.literal(False))
|
138
|
140
|
imported_from = Column(Unicode(32), nullable=True)
|
139
|
141
|
timezone = Column(Unicode(255), nullable=False, server_default='')
|
140
|
142
|
# TODO - G.M - 04-04-2018 - [auth] Check if this is already needed
|