models/projectdb.py¶
models.projectdb ¶
ProjectDB
ProjectDB ¶
Bases: DBBase
Project Collection
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pid |
str
|
Project id. |
required |
Attributes:
Name | Type | Description |
---|---|---|
pid |
str
|
Project id. |
Struct
_id
: Project id (pid)name
: Project name for display.action_date
:timestamp
The first date of the event launched.created_at
:timestamp
The data created at.desc
: Description.owners
: List of uid. The permissions ofowner
has the top level over the project.calendar
: Google Calendar id. The ID patten should be{a-z0-9_}@group.calendar.google.com
.gitlab_project_id
: Gitlab project id.mailling_leader
: The mailing-list for team leaders.mailling_staff
: The mailing-list for all project staffs.mattermost_ch_id
: The chat room for Mattermost.shared_drive
: Google Shared Drive URL.traffic_fee_doc
: The announcement URL of the traffic subsidy document.volunteer_certificate_hours
: The hours for volunteers to apply for.parking_card
: The options for parking card in form.
TODO
Need refactor in pydantic.