activity.models.occasion_need

Classes

OccasionNeed

Defines a required resource on an occasion.

Module Contents

class activity.models.occasion_need.OccasionNeed[source]

Bases: onegov.core.orm.Base, onegov.core.orm.mixins.TimestampMixin

Defines a required resource on an occasion.

__tablename__ = 'occasion_needs'[source]
id: sqlalchemy.Column[uuid.UUID][source]
name: sqlalchemy.Column[str][source]
description: sqlalchemy.Column[str | None][source]
number: sqlalchemy.Column[onegov.activity.types.BoundedIntegerRange][source]
accept_signups: sqlalchemy.Column[bool][source]
occasion_id: sqlalchemy.Column[uuid.UUID][source]
occasion: sqlalchemy.orm.relationship[activity.models.occasion.Occasion][source]
volunteers: sqlalchemy.orm.relationship[list[activity.models.volunteer.Volunteer]][source]
__table_args__[source]