codesydney / marketplace-app-for-good

1 stars 1 forks source link

feat: Tasks migrations and minimal ui for Create Tasks Page #36

Closed davidtaing closed 2 months ago

davidtaing commented 3 months ago

This pull request setups database migrations for creating, updating and viewing Tasks and also provides minimal UI implementation for the tasks listings and task create pages.

davidtaing commented 2 months ago

Data (WIP)

This schema may change as I implement this feature. I will try to update this as much as possible.

Last Change Add categories table and add category_id fk to tasks

Previous Versions:

Comments

Edit:

davidtaing commented 2 months ago

Permissions

Tasks

Tasks represent the public listing information. Private information such as the payment status can be represented in a jobs table.

Role Create Task Read Task Update Task Delete Task
Admin Yes Yes Yes Yes ¹
Service Provider No Yes No No
Customer Yes Yes Yes ² No ³
Unauthenicated (Anon user) No Yes No No

Comments

Addresses

Role Create Address Read Address Update Address Delete Address
Admin Yes Yes Yes Yes ⁵
Service Provider ⁴ N/A N/A N/A N/A
Customer ⁴ N/A N/A N/A N/A
Owner of Address ⁴ Yes Yes Yes No ⁵
Unauthenticated (Anon user) No No No No

Task Categories

Role Create Address Read Address Update Address Delete Address
Admin Yes Yes Yes Yes
Authenticated⁶ No Yes No No
Unauthenticated (Anon user) No No No No

Comments

davidtaing commented 2 months ago

This is getting a bit large for my liking. So I've created a new feat/tasks-pr-chain branch and will stack pull requests for this feature there.