radicalplatforms / shafa

A wardrobe logging, composition, and organization app
https://shafa.app
Mozilla Public License 2.0
0 stars 0 forks source link

Add "last worn date" attribute to items db view #92

Open rak3rman opened 6 months ago

rak3rman commented 6 months ago

Description

Add an additional attribute to the items_extended materialized database view called "lastWorn". The last worn attribute should return an ISO date of when this particular item was last worn in an outfit for this user. If there are no outfits associated with this item, null should be returned. Make sure the authorUsername attributes match. See previous draft of this feature in Github: https://github.com/radicalplatforms/shafa/blob/376d182b58db59461a463c1f5ae5427bfa4109e6/hono/src/service/items.ts#L32

Acceptance Criteria

Generated by Zenhub AI