Add budget
This commit is contained in:
1 parent
ca1c2ed778
commit
04af4bce7e
2 files changed
+22
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package budgeteer
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Budget represents a budget
|
||||
type Budget struct {
|
||||
ID string
|
||||
Name string
|
||||
LastModification time.Time
|
||||
}
|
||||
|
||||
// BudgetService provides Methods for CRUD of Budgets
|
||||
type BudgetService interface {
|
||||
Budget(id string) (Budget, error)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
CREATE TABLE budgets (
|
||||
id char(26),
|
||||
name text,
|
||||
last_modification timestamp with time zone
|
||||
);
|
||||
Reference in new issue
Block a user