Commit graph

11 commits

Author SHA1 Message Date
Simon Bruder bcbb7dfc67
Add item state 2024-07-24 16:29:22 +02:00
Simon Bruder a528b9fe44
Add description to item and item class 2024-07-19 00:06:21 +02:00
Simon Bruder c67e31fdc5
Add original packaging attribute to items 2024-07-19 00:06:17 +02:00
Simon Bruder 1427ed9bf4
Add short id to item for usage with labels 2024-07-19 00:05:36 +02:00
Simon Bruder 4f230af334
Add creation date to allow consistent ordering 2024-07-19 00:05:29 +02:00
Simon Bruder 00d7647187
Switch to sqlx
While diesel has a native rust interface, writing more complex queries
is easier when you can just pass a SQL query string.
2024-07-19 00:05:26 +02:00
Simon Bruder 6251dea6a1
Simplify item class model
Whether an item class is generic or specific can be deduced from whether
a parent exists or not.

While the SQL migration (especially the down direction) is quite
complex, it simplifies the handling quite a bit.
2024-07-19 00:05:24 +02:00
Simon Bruder c4a73204aa
Make item name optional
This vastly changes how item names are displayed. To make this more
ergonomic, it adds some helper macros. This also aids in adhering to
DRY.
2024-07-11 01:16:45 +02:00
Simon Bruder 775bc6ba9e
Add item classes 2024-07-11 01:16:37 +02:00
Simon Bruder ffddf2ba00
Add parent to item 2024-07-11 01:16:35 +02:00
Simon Bruder f4ba4e9733
Init 2024-07-11 01:16:00 +02:00