Merge pull request #2 from KristianJBorgwarth/feat/models

feat(models): added domain models
This commit is contained in:
Kristian 2026-03-24 21:50:12 +01:00 committed by GitHub
commit be9b10d855
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 32 additions and 0 deletions

2
core/models/doc.go Normal file
View file

@ -0,0 +1,2 @@
// Package models contains the data models for the index
package models

7
core/models/links.go Normal file
View file

@ -0,0 +1,7 @@
package models
type Link struct {
FromNoteID int
ToNoteID int
Raw string
}

11
core/models/note.go Normal file
View file

@ -0,0 +1,11 @@
package models
type Note struct {
ID int
Path string
Title string
Slug string
CreatedAt string
UpdatedAt string
}

6
core/models/note_tag.go Normal file
View file

@ -0,0 +1,6 @@
package models
type NoteTag struct {
NoteID int
TagID int
}

6
core/models/tag.go Normal file
View file

@ -0,0 +1,6 @@
package models
type Tag struct {
ID int
Name string
}