Skip to content

Separate DB operations from application layer and create a Data layer #21

Description

@shreevari

Currently, all db operations happen inline embedded within application logic. Create a data layer with common db operations on every model/entity and use these appropriately in the application layer.

Example directory structure:

data
- member.ts
- message.ts
- ...

member.ts(and others) should have get, update, delete functions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions