Skip to content

Model Layer Refactor#1

Open
DanielErhardt wants to merge 9 commits intomainfrom
model-refactor
Open

Model Layer Refactor#1
DanielErhardt wants to merge 9 commits intomainfrom
model-refactor

Conversation

@DanielErhardt
Copy link
Owner

moved from database folder to src/models

moved from database folder to src/models
they are now compatible with mongoose schema types
it now receives a static mongoose Model
now using static Archive model directly from import
now they all pass a static mongoose model as dependency through super
it resets the Model's collection, a disaster waiting to happen
it now seeds directly through the mongoose static models
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant