Skip to content

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

@shreevari

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

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