Add budget

This commit is contained in:
Jan Bader 2016-12-20 20:20:52 +01:00
parent ca1c2ed778
commit 04af4bce7e
2 changed files with 22 additions and 0 deletions

17
budget.go Normal file
View 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
View File

@ -0,0 +1,5 @@
CREATE TABLE budgets (
id char(26),
name text,
last_modification timestamp with time zone
);