DiscountCode
- Engine: MongoDB (mongoengine document)
- App: reference
- Table/Collection: ``
| Field | Type | Column/Key | Null/Default | PK | Choices | Notes |
|---|---|---|---|---|---|---|
| code | StringField | code | null | — | — | |
| discount | DecimalField | discount | null/dflt=0.00 | — | — | |
| max_uses | IntField | max_uses | null/dflt=100 | — | — | |
| uses | IntField | uses | null/dflt=0 | — | — |
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.
code
- Engine: MongoDB
- Type:
StringField - Column/Key:
code - nullable
No help text yet — add a help_text on the model field and regenerate to fill this in.
discount
- Engine: MongoDB
- Type:
DecimalField - Column/Key:
discount - nullable; default =
0.00
No help text yet — add a help_text on the model field and regenerate to fill this in.
max_uses
- Engine: MongoDB
- Type:
IntField - Column/Key:
max_uses - nullable; default =
100
No help text yet — add a help_text on the model field and regenerate to fill this in.
uses
- Engine: MongoDB
- Type:
IntField - Column/Key:
uses - nullable; default =
0
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.