feat: extend expense card info and allow edit/delete of expense
This commit is contained in:
parent
1c210bde67
commit
99a002c607
7 changed files with 516 additions and 24 deletions
|
|
@ -21,6 +21,11 @@ type Expense struct {
|
|||
UpdatedAt time.Time `db:"updated_at"`
|
||||
}
|
||||
|
||||
type ExpenseWithTags struct {
|
||||
Expense
|
||||
Tags []*Tag
|
||||
}
|
||||
|
||||
type ExpenseTag struct {
|
||||
ExpenseID string `db:"expense_id"`
|
||||
TagID string `db:"tag_id"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue