mirror of
https://github.com/ChronosX88/openkeepd.git
synced 2024-11-23 12:12:18 +00:00
feat: Add necessary db models
This commit is contained in:
parent
098b93e3b1
commit
d1f7681b0b
9
internal/models/db/note.go
Normal file
9
internal/models/db/note.go
Normal file
@ -0,0 +1,9 @@
|
||||
package db
|
||||
|
||||
// Note represents user note
|
||||
type Note struct {
|
||||
NoteID string
|
||||
NoteTitle string
|
||||
NoteAuthor string
|
||||
NoteContent string
|
||||
}
|
10
internal/models/db/todo.go
Normal file
10
internal/models/db/todo.go
Normal file
@ -0,0 +1,10 @@
|
||||
package db
|
||||
|
||||
// Todo represents TODO-list note
|
||||
type Todo struct {
|
||||
TodoID string
|
||||
TodoTitle string
|
||||
TodoUnchecked []string
|
||||
TodoChecked []string
|
||||
TodoAuthor string
|
||||
}
|
8
internal/models/db/user.go
Normal file
8
internal/models/db/user.go
Normal file
@ -0,0 +1,8 @@
|
||||
package db
|
||||
|
||||
// User represents entity that interacts with the system
|
||||
type User struct {
|
||||
UserID string
|
||||
UserName string
|
||||
Password string
|
||||
}
|
Loading…
Reference in New Issue
Block a user