16 lines
370 B
Go
16 lines
370 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Note represents a single note with its metadata.
|
|
type Note struct {
|
|
// ID is the unique identifier of the note.
|
|
ID int `json:"id"`
|
|
// LastUpdate is the timestamp of when the note was last modified.
|
|
LastUpdate time.Time `json:"last_update"`
|
|
// Content is the actual text content of the note.
|
|
Content string `json:"content"`
|
|
}
|