feat(models): added domain models

This commit is contained in:
Kristian Borgwarth 2026-03-24 21:49:42 +01:00
parent d9adf0e8df
commit f7d25e27c7
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
}