Add userbudget
This commit is contained in:
@@ -11,7 +11,14 @@ type Budget struct {
|
||||
LastModification time.Time
|
||||
}
|
||||
|
||||
// UserBudget represents the relation between users and budgets
|
||||
type UserBudget struct {
|
||||
UserID string `sql:",pk"`
|
||||
BudgetID string `sql:",pk"`
|
||||
}
|
||||
|
||||
// BudgetService provides Methods for CRUD of Budgets
|
||||
type BudgetService interface {
|
||||
Budget(id string) (Budget, error)
|
||||
BudgetsForUser(user User) ([]Budget, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user