8cdfb6abfe
revert(db/models): re-add & Document
to PopulatedDoc type parameters
2023-12-30 00:46:11 -05:00
c8e84c909e
style(*): cleanup unused imports
2023-12-29 20:11:07 -05:00
1447960b1a
refactor(db/models): update populatedDoc types
...
- remove `& Document` qualifier
- cast `T | number` to T with the `as` keyword
2023-12-29 19:06:55 -05:00
1412d39240
revert(db/models): revert guard removal
...
we need it after all lmao
2023-12-29 18:05:18 -05:00
a8e113e969
refactor(db/models): remove model existence guards
...
this way, plugins are registered if `hasMigrated` is true. we've already enabled automatically overwriting models, therefore, the guard's condition will always be false
2023-12-29 16:36:26 -05:00
8cea9303e1
refactor(db/models): change chapter schema creation call
...
`new mongoose.Schema` -> `new Schema`
2023-12-28 20:01:49 -05:00
3e5af47107
refactor(*): refactor tsconfig paths
...
looks/feels nicer
2023-12-20 17:23:31 -05:00
b21aab4940
refactor(db/models): remove existence guard/check from models
2023-12-06 21:39:59 -05:00
9dbf0548d7
refactor(db/models): remove existence guard/check from models
2023-12-06 21:28:51 -05:00
722368c707
fix(db/models): short-circuit story model definition + plugin load
2023-12-01 18:01:16 -05:00
2085131d5a
fix(db/models): only register counter plugin if model doesn't already exist
2023-10-12 22:28:37 -04:00
08c49e4bdd
style(db/models): format
2023-10-03 01:22:43 -04:00
e23faf84d4
refactor(db/models): remove reviews
field from chapter type
...
kinda redundant since there's also `IStory.reviews` :/
2023-10-03 01:14:20 -04:00
ad8be9d7fa
refactor(db/models): change draft type to story type with omitted fields
2023-10-03 01:13:16 -04:00
9fe4d0c979
feat(db/models): add co-author field to stories
2023-10-03 01:11:32 -04:00
1db9bdec9c
refactor(db/models): add new story models
2023-09-25 19:19:32 -04:00