Add budget
This commit is contained in:
parent
ca1c2ed778
commit
04af4bce7e
17
budget.go
Normal file
17
budget.go
Normal file
@ -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)
|
||||
}
|
5
postgres/budgets.sql
Normal file
5
postgres/budgets.sql
Normal file
@ -0,0 +1,5 @@
|
||||
CREATE TABLE budgets (
|
||||
id char(26),
|
||||
name text,
|
||||
last_modification timestamp with time zone
|
||||
);
|
Loading…
x
Reference in New Issue
Block a user