Skip to content

MedalTable

  • Engine: MongoDB (mongoengine document)
  • App: reference
  • Table/Collection: medal_table
  • Verbose name: MedalTable

List of medallists, in one document for rapid serving and analysis. Helper methods to tabulate by event, medal colour etc

Field Type Column/Key Null/Default PK Choices Notes
_about EmbeddedDocumentField → embedded <class 'docengine.mongoutils.models.WhoWhenInfo'> _about null — —
last_calculated DateTimeField last_calculated null — —
competition ReferenceField → <class 'project.reference.mongo.competition.Competition'> competition — — —
medallists EmbeddedDocumentListField medallists null/dflt=[] — —
medal_grouping StringField medal_grouping null/dflt=BY_CATEGORY BY_EVENT: Medal in each event; BY_CATEGORY: Medal for each category in each event; BY_GENDER: Medal for each gender in each event Medals for each event, each age category, or each gender wit…
id ObjectIdField _id — PK — —

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.

_about

  • Engine: MongoDB
  • Type: EmbeddedDocumentField → embedded <class 'docengine.mongoutils.models.WhoWhenInfo'>
  • Column/Key: _about
  • nullable

No help text yet — add a help_text on the model field and regenerate to fill this in.

last_calculated

  • Engine: MongoDB
  • Type: DateTimeField
  • Column/Key: last_calculated
  • nullable

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.

medallists

  • Engine: MongoDB
  • Type: EmbeddedDocumentListField
  • Column/Key: medallists
  • nullable; default = []

No help text yet — add a help_text on the model field and regenerate to fill this in.

medal_grouping

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: medal_grouping
  • nullable; default = BY_CATEGORY; choices: BY_EVENT: Medal in each event; BY_CATEGORY: Medal for each category in each event; BY_GENDER: Medal for each gender in each event

Medals for each event, each age category, or each gender within the event?

id

  • Engine: MongoDB
  • Type: ObjectIdField
  • Column/Key: _id
  • primary key; nullable

No help text yet — add a help_text on the model field and regenerate to fill this in.

Generated by docs_models management command for MongoDB.