kepler.models.time_slot module¶
The module defines the classes for database models related to time slots.
-
class
kepler.models.time_slot.TimeSlot(start, end, max_reservations, creator_id, unit_type_id)¶ Bases:
sqlalchemy.ext.declarative.api.BaseThe SQLAlchemy declarative model class for a
TimeSlotobject holds information about time slots.-
created_at¶ The creation time of the time slot.
-
creator_id¶ The ID of the user who created the time slot.
-
end¶ The end time of the time slot.
-
has_ended()¶
-
has_started()¶
-
id¶ The ID of the time slot.
-
max_reservations¶ The maximum number of reservations that the time slot can have.
-
start¶ The start time of the time slot.
-
unit_type_id¶ The unit type of the time slot.
-
-
class
kepler.models.time_slot.TimeSlotStatus(time_slot_id, time_slot_status_type_id)¶ Bases:
kepler.models.models_meta.ModifiableBase,sqlalchemy.ext.declarative.api.BaseThe class represents a row in the database table that specifies time slot status types for time slots.
-
id¶ The ID of the time slot status.
-
modifier_id¶
-
time_slot_id¶ The reference to the
TimeSlotdatabase table.
-
time_slot_status_type_id¶ The reference to the
TimeSlotStatusTypedatabase table.
-
-
class
kepler.models.time_slot.TimeSlotStatusType(id, name_tr_id)¶ Bases:
sqlalchemy.ext.declarative.api.BaseThe SQLAlchemy declarative model class that represents different time slot status types.
-
active¶ Specifies if the time slot status type is active or has been deactivated.
-
id¶ The ID of the time slot status type.
-
name_tr_id¶ The translation ID of te name of the time slot status type.
-
-
class
kepler.models.time_slot.TimeSlotSupervisor(time_slot_id, user_id, in_charge=True)¶ Bases:
kepler.models.models_meta.ModifiableBase,sqlalchemy.ext.declarative.api.BaseThe SQLAlchemy declarative model class for a
TimeSlotSupervisorobject holds information about the supervisors attached to a specific time slot.-
in_charge¶ Specifies if the supervisor is the one in charge of the time slot.
-
modifier_id¶
-
time_slot_id¶ The reference to the
TimeSlotdatabase table.
-
user_id¶ The reference to the
Ùserdatabase table specifies the supervisor for the time slot.
-