hiyaryan / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling distorted thinking and finding alternative modes of thought (i.e. reframing) while cognitive distortions are occurring. The CDJ does that work for you. -- The CDJ is in beta testing!!
https://thecdj.app
3 stars 0 forks source link

Update schema. #9

Closed hiyaryan closed 10 months ago

hiyaryan commented 10 months ago

This PR updates updates the db schemas and adds realistic seed data.

Population of a schema that references another schema would do this referencing _id, e.g. entry_id. This felt unnatural rather than simply calling entry to populate a collection that references entry. All collections that reference other collections, even if by _id, have been updated to the name of the collection if references.

Additionally, thanks to ChatGPT, there is now realistic seed data to populate the app with!