feat: Add necessary db models

This commit is contained in:
ChronosX88 2019-10-20 22:30:55 +04:00
parent 098b93e3b1
commit d1f7681b0b
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,9 @@
package db
// Note represents user note
type Note struct {
NoteID string
NoteTitle string
NoteAuthor string
NoteContent string
}

View 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
}

View File

@ -0,0 +1,8 @@
package db
// User represents entity that interacts with the system
type User struct {
UserID string
UserName string
Password string
}