Merge pull request #2 from KristianJBorgwarth/feat/models
feat(models): added domain models
This commit is contained in:
commit
be9b10d855
5 changed files with 32 additions and 0 deletions
2
core/models/doc.go
Normal file
2
core/models/doc.go
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
// Package models contains the data models for the index
|
||||
package models
|
||||
7
core/models/links.go
Normal file
7
core/models/links.go
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
package models
|
||||
|
||||
type Link struct {
|
||||
FromNoteID int
|
||||
ToNoteID int
|
||||
Raw string
|
||||
}
|
||||
11
core/models/note.go
Normal file
11
core/models/note.go
Normal 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
6
core/models/note_tag.go
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
package models
|
||||
|
||||
type NoteTag struct {
|
||||
NoteID int
|
||||
TagID int
|
||||
}
|
||||
6
core/models/tag.go
Normal file
6
core/models/tag.go
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
package models
|
||||
|
||||
type Tag struct {
|
||||
ID int
|
||||
Name string
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue