diff --git a/budget.go b/budget.go new file mode 100644 index 0000000..68b13b4 --- /dev/null +++ b/budget.go @@ -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) +} diff --git a/postgres/budgets.sql b/postgres/budgets.sql new file mode 100644 index 0000000..46b7832 --- /dev/null +++ b/postgres/budgets.sql @@ -0,0 +1,5 @@ +CREATE TABLE budgets ( + id char(26), + name text, + last_modification timestamp with time zone +); \ No newline at end of file