1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-26 23:14:19 +00:00
pds-2021-g2-nest/nest_backend/database/tables/Enums.py

32 lines
525 B
Python
Raw Normal View History

"""
This module contains the main enum definitions.
"""
import enum
class ConditionType(enum.Enum):
2021-05-05 17:17:32 +00:00
"""
Vedi `Specifica delle Conditions su
GitLab <https://gitlab.steffo.eu/nest/g2-progetto/-/wikis/Specifica-delle-Conditions>`_ .
"""
hashtag = 0
2021-05-07 01:29:59 +00:00
location = 1 # DEPRECATED, do not use
time = 2
2021-05-05 17:17:32 +00:00
coordinates = 3
place = 4
2021-05-07 01:29:59 +00:00
user = 5
class OperationType(enum.Enum):
_and = 0
_or = 1
_not = 2
assign = 3
2021-05-06 15:20:07 +00:00
class ConditionMode(enum.Enum):
all_or = 0
all_and = 1