Implement rough architecture

This commit is contained in:
Martin Pander
2022-11-07 15:33:08 +01:00
parent 0ff700b945
commit 43c204f5b5
24 changed files with 1402 additions and 0 deletions

View File

@ -0,0 +1,12 @@
package database
import (
"time"
"github.com/moustachioed/dash/backend/database/models"
)
type Database interface {
WriteJournalEntry(dbmodel models.Journal) error
GetJournalEntryForDate(date time.Time) (models.Journal, error)
}