Commit Graph

26 Commits

Author SHA1 Message Date
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
ae8d34d84f
refactor(db/models): rename generateToken method to generateJWT 2023-12-20 19:56:33 -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
3d3580be07
refactor(db/models): short circuit sidebar item model definition 2023-12-01 18:00:12 -05:00
2085131d5a
fix(db/models): only register counter plugin if model doesn't already exist 2023-10-12 22:28:37 -04:00
4c39eb8799
refactor(db/models): update color field in sidebarentry to accept either a string or an enum 2023-10-05 02:05:12 -04:00
08c49e4bdd
style(db/models): format 2023-10-03 01:22:43 -04:00
f48ac551f4
style(db/models): run prettier on models/challenges directory 2023-10-03 01:15:29 -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
6598dfd3d6
refactor(db/models): add notifyOnReviewReply flag to user schema 2023-10-03 01:02:05 -04:00
a16e58b2b4
refactor(db/models): change _id field in inbox schema to a reference field that points to the owning user 2023-10-02 16:06:01 -04:00
38516dc80d
feat(db/models): create dedicated private message inbox model 2023-10-02 16:02:31 -04:00
997962e391
feat(db/models): create model to store sidebar items in database 2023-09-25 19:50:50 -04:00
dc250771ed
feat(db/models): create quick menu model
recreating v1's customizable quick menu feature
2023-09-25 19:47:21 -04:00
7299471a52
refactor(db/models): add more models
(band, private message and user)
2023-09-25 19:41:32 -04:00
eeb7a97d84
feat(db/models): add new challenge models
biffno, ficmas, and "gen" challenges
2023-09-25 19:26:13 -04:00
1db9bdec9c
refactor(db/models): add new story models 2023-09-25 19:19:32 -04:00