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.Base
The SQLAlchemy declarative model class for a
Resource
object 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.Base
The SQLAlchemy declarative model class for a
ResourceStatus
object 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
Resource
database table.
-
resource_status_type_id
¶ The reference to the
ResourceStatusType
database table.
-
-
class
kepler.models.resource.
ResourceStatusType
(id, name_tr_id)¶ Bases:
sqlalchemy.ext.declarative.api.Base
The SQLAlchemy declarative model class for a
ResourceStatusType
object 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.
-