--- name: New Database Model about: Use when creating a new database model. title: "New Model - " type: Task labels: task::feature, triage, type::task --- ## ๐Ÿ“ Details ## ๐Ÿšง Tasks - [ ] ๐Ÿ†• [Model Created](https://nofusscomputing.com/projects/centurion_erp/development/models/) - [ ] ๐Ÿ› ๏ธ Migrations added - [ ] โ™ป๏ธ Serializer Created - [ ] ๐Ÿ”„ [ViewSet Created](https://nofusscomputing.com/projects/centurion_erp/development/views/) - [ ] ๐Ÿ”— URL Route Added - [ ] ๐Ÿท๏ธ Model tag added to `app/core/lib/slash_commands/linked_model.CommandLinkedModel.get_model()` function - [ ] ๐Ÿ“˜ Tag updated in the [docs](https://nofusscomputing.com/projects/centurion_erp/user/core/markdown/#model-reference) - [ ] tag added to `app/core/lib/slash_commands/linked_model.CommandLinkedModel.get_model()` - [ ] โš’๏ธ Migration _Ticket Linked Item item_type choices update_ >[!note] > Ensure that when creating the tag the following is adhered to: > - Two words are not to contain a space char, `\s`. It is to be replaced with an underscore `_` > - As much as practical, keep the tag as close to the model name as possible - [ ] ๐Ÿ“ New [History model](https://nofusscomputing.com/projects/centurion_erp/development/core/model_history/) created - Sub-Models **_ONLY_** - [ ] Model class variable [`history_app_label`](https://nofusscomputing.com/projects/centurion_erp/development/models/#history) set to correct application label - [ ] Model class variable [`history_model_name`](https://nofusscomputing.com/projects/centurion_erp/development/models/#history) set to correct model label - [ ] ๐Ÿ““ New [Notes model](https://nofusscomputing.com/projects/centurion_erp/development/core/model_notes/) created - [ ] ๐Ÿ†• Model Created - [ ] ๐Ÿ› ๏ธ Migrations added - [ ] Add `app_label` to KB Models `app/assistance/models/model_knowledge_base_article.all_models().model_apps` - [ ] _(Notes not used/required) -_ Add `model_name` to KB Models `app/assistance/models/model_knowledge_base_article.all_models().excluded_models` - [ ] ๐Ÿงช [Unit tested](https://nofusscomputing.com/projects/centurion_erp/development/core/model_notes/#testing) - [ ] ๐Ÿงช [Functional tested](https://nofusscomputing.com/projects/centurion_erp/development/core/model_notes/#testing) - [ ] Admin Documentation added/updated _if applicable_ - [ ] Developer Documentation added/updated _if applicable_ - [ ] User Documentation added/updated --- ### ๐Ÿงช Tests - Unit Tests - [ ] API Render (fields) - [ ] [Model](https://nofusscomputing.com/projects/centurion_erp/development/models/#tests) - [ ] ViewSet - Function Test - [ ] History API Render (fields) - [ ] History Entries - [ ] API Metadata - [ ] API Permissions - [ ] Model - [ ] Serializer - [ ] ViewSet ## โœ… Requirements A Requirement is a must have. In addition will also be tested. - [ ] Must have a [model_tag](https://nofusscomputing.com/projects/centurion_erp/user/core/markdown/#model-reference) - Functional Requirements - Non-Functional Requirements ---