kepler.models.resource module¶
The module defines the classes for database models related to resources.
-
class
kepler.models.resource.Resource(name_tr_id, description_tr_id=None)¶ Bases:
sqlalchemy.ext.declarative.api.BaseThe SQLAlchemy declarative model class for a
Resourceobject holds information about the resource that can be reserved.-
description_tr_id¶ The translation ID of the description of the resource.
-
id¶ The ID of the resource.
-
name_tr_id¶ The translation ID of the name of the resource.
-
-
class
kepler.models.resource.ResourceStatus(resource_id, resource_status_type_id, count)¶ Bases:
kepler.models.models_meta.ModifiableBase,sqlalchemy.ext.declarative.api.BaseThe SQLAlchemy declarative model class for a
ResourceStatusobject holds information about the status of a reservation.-
count¶ The number of resources that have the status type specified by
resource_status_type_id.
-
modifier_id¶
-
resource_id¶ The reference to the
Resourcedatabase table.
-
resource_status_type_id¶ The reference to the
ResourceStatusTypedatabase table.
-
-
class
kepler.models.resource.ResourceStatusType(id, name_tr_id)¶ Bases:
sqlalchemy.ext.declarative.api.BaseThe SQLAlchemy declarative model class for a
ResourceStatusTypeobject holds information about different types of statuses a resource can have.-
active¶ Specifies whether the resource status type is active or has been deactivated.
-
id¶ The ID of the resource status type.
-
name_tr_id¶ The translation ID of the name of the resource status type.
-