Initial implementation

This commit is contained in:
2025-12-10 11:10:52 +01:00
parent cff9defc4a
commit 4cb97a25ba
26 changed files with 2714 additions and 1 deletions

14
internal/models/diary.go Normal file
View File

@@ -0,0 +1,14 @@
package models
import "time"
// DiaryEntry represents a journal entry for a specific day.
type DiaryEntry struct {
Date time.Time
Text string
}
// DateString returns the date formatted as YYYY-MM-DD.
func (d *DiaryEntry) DateString() string {
return d.Date.Format("2006-01-02")
}