TeamEntry
- Engine: MongoDB (mongoengine document)
- App: reference
- Table/Collection:
team_entry - Verbose name: TeamEntry
A team making entries or competing for points. At many competitions, club athletes need not be tied to one of these. In inter-team matches, a record must exist. Attributes of this will affect team scoring in many cases
| Field | Type | Column/Key | Null/Default | PK | Choices | Notes |
|---|---|---|---|---|---|---|
| session_key | StringField | session_key | null | — | Stores the session occupying the declaration page for this t… | |
| session_date | DateTimeField | session_date | null | — | — | |
| session_user_id | IntField | session_user_id | null | — | — | |
| session_user_name | StringField | session_user_name | null | — | — | |
| session_user_email | StringField | session_user_email | null | — | — | |
| _about | EmbeddedDocumentField → embedded <class 'docengine.mongoutils.models.VersionInfo'> | _about | null | — | — | |
| id | StringField | _id | dflt=df1c2778-eb3e-43a1-8d73-0b80f3bbe93c | PK | — | — |
| competition | ReferenceField → <class 'project.reference.mongo.competition.Competition'> | competition | — | — | — | |
| team_id | StringField | team_id | — | — | Unique code for the team in the competition | |
| display_code | StringField | display_code | null | — | Override to team ID for preferred display | |
| match_id | StringField | match_id | null/dflt=match | — | Which match? | |
| team_name | StringField | team_name | null | — | — | |
| team_name_local | StringField | team_name_local | null | — | — | |
| short_name | StringField | short_name | null | — | — | |
| organisation_id | StringField | organisation_id | null | — | — | |
| bib_a | StringField | bib_a | null | — | Bib worn by A runner in each team | |
| bib_b | StringField | bib_b | null | — | Bib worn by B runner in each team | |
| bib_c | StringField | bib_c | null | — | Bib worn by C runner in each team | |
| bib_d | StringField | bib_d | null | — | Bib worn by D runner in each team | |
| category_bibs | DictField | category_bibs | null/dflt={} | — | Category-scoped bibs: {category: [1st-string bib, 2nd-string… | |
| flag_url | StringField | flag_url | null | — | Custom flag URL | |
| flag_colour | StringField | flag_colour | null | — | Colour to be used as a basic flag | |
| relay_teams | EmbeddedDocumentListField | relay_teams | null/dflt=[] | — | — | |
| is_adhoc | BooleanField | is_adhoc | null/dflt=False | — | Is this an ad-hoc team created for a one-off match? | |
| link_only | BooleanField | link_only | null/dflt=False | — | Exists only so competitors link to their club; not a team in… | |
| ns_number_range | StringField | ns_number_range | null | — | Bib range(s) for non-scoring athletes, e.g. '800-849' or '80… |
Field names link to their fuller explanation below.
Field details
Click a field name in the table above to jump to its explanation. Fields with no help text yet show a prompt, and are the ones to improve by adding a help_text on the model field, then regenerating.
session_key
- Engine: MongoDB
- Type:
StringField - Column/Key:
session_key - nullable
Stores the session occupying the declaration page for this team.
session_date
- Engine: MongoDB
- Type:
DateTimeField - Column/Key:
session_date - nullable
No help text yet — add a help_text on the model field and regenerate to fill this in.
session_user_id
- Engine: MongoDB
- Type:
IntField - Column/Key:
session_user_id - nullable
No help text yet — add a help_text on the model field and regenerate to fill this in.
session_user_name
- Engine: MongoDB
- Type:
StringField - Column/Key:
session_user_name - nullable
No help text yet — add a help_text on the model field and regenerate to fill this in.
session_user_email
- Engine: MongoDB
- Type:
StringField - Column/Key:
session_user_email - nullable
No help text yet — add a help_text on the model field and regenerate to fill this in.
_about
- Engine: MongoDB
- Type:
EmbeddedDocumentField→ embedded <class 'docengine.mongoutils.models.VersionInfo'> - Column/Key:
_about - nullable
No help text yet — add a help_text on the model field and regenerate to fill this in.
id
- Engine: MongoDB
- Type:
StringField - Column/Key:
_id - primary key; default =
ec097b26-7864-4a4e-ac92-6ba3eba3ec5d
No help text yet — add a help_text on the model field and regenerate to fill this in.
competition
- Engine: MongoDB
- Type:
ReferenceField→ <class 'project.reference.mongo.competition.Competition'> - Column/Key:
competition
No help text yet — add a help_text on the model field and regenerate to fill this in.
team_id
- Engine: MongoDB
- Type:
StringField - Column/Key:
team_id
Unique code for the team in the competition
display_code
- Engine: MongoDB
- Type:
StringField - Column/Key:
display_code - nullable
Override to team ID for preferred display
match_id
- Engine: MongoDB
- Type:
StringField - Column/Key:
match_id - nullable; default =
match
Which match?
team_name
- Engine: MongoDB
- Type:
StringField - Column/Key:
team_name - nullable
No help text yet — add a help_text on the model field and regenerate to fill this in.
team_name_local
- Engine: MongoDB
- Type:
StringField - Column/Key:
team_name_local - nullable
No help text yet — add a help_text on the model field and regenerate to fill this in.
short_name
- Engine: MongoDB
- Type:
StringField - Column/Key:
short_name - nullable
No help text yet — add a help_text on the model field and regenerate to fill this in.
organisation_id
- Engine: MongoDB
- Type:
StringField - Column/Key:
organisation_id - nullable
No help text yet — add a help_text on the model field and regenerate to fill this in.
bib_a
- Engine: MongoDB
- Type:
StringField - Column/Key:
bib_a - nullable
Bib worn by A runner in each team
bib_b
- Engine: MongoDB
- Type:
StringField - Column/Key:
bib_b - nullable
Bib worn by B runner in each team
bib_c
- Engine: MongoDB
- Type:
StringField - Column/Key:
bib_c - nullable
Bib worn by C runner in each team
bib_d
- Engine: MongoDB
- Type:
StringField - Column/Key:
bib_d - nullable
Bib worn by D runner in each team
category_bibs
- Engine: MongoDB
- Type:
DictField - Column/Key:
category_bibs - nullable; default =
{}
Category-scoped bibs: {category: [1st-string bib, 2nd-string bib, ...]}. Use 'ALL' as the category for a designation spanning every category.
flag_url
- Engine: MongoDB
- Type:
StringField - Column/Key:
flag_url - nullable
Custom flag URL
flag_colour
- Engine: MongoDB
- Type:
StringField - Column/Key:
flag_colour - nullable
Colour to be used as a basic flag
relay_teams
- Engine: MongoDB
- Type:
EmbeddedDocumentListField - Column/Key:
relay_teams - nullable; default =
[]
No help text yet — add a help_text on the model field and regenerate to fill this in.
is_adhoc
- Engine: MongoDB
- Type:
BooleanField - Column/Key:
is_adhoc - nullable; default =
False
Is this an ad-hoc team created for a one-off match?
link_only
- Engine: MongoDB
- Type:
BooleanField - Column/Key:
link_only - nullable; default =
False
Exists only so competitors link to their club; not a team in the match (does not score, is not invoiced)
ns_number_range
- Engine: MongoDB
- Type:
StringField - Column/Key:
ns_number_range - nullable
Bib range(s) for non-scoring athletes, e.g. '800-849' or '800-849,900-910'
Generated by docs_models management command for MongoDB.