first commit
This commit is contained in:
6
models/attendees.go
Normal file
6
models/attendees.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package models
|
||||
|
||||
type Attendees struct {
|
||||
FirstName int `json:"firstName"`
|
||||
LastName string `json:"lastName"`
|
||||
}
|
15
models/database.go
Normal file
15
models/database.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
type Database struct {
|
||||
Path string `json:"dbPath,omitempty"`
|
||||
Token string `json:"token,omitempty"`
|
||||
Create bool `json:"create,omitempty"`
|
||||
}
|
||||
|
||||
func (d *Database) SetDefaultPath() {
|
||||
d.Path = "data/mydatabase.db"
|
||||
}
|
||||
|
||||
func (d *Database) SetDefaultToken() {
|
||||
d.Token = "6576889abd578frdj,ouzt6909-gtrfb"
|
||||
}
|
9
models/event.go
Normal file
9
models/event.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package models
|
||||
|
||||
type Event struct {
|
||||
Id int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Date string `json:"date"`
|
||||
Attendees []Attendees `json:"attendees"`
|
||||
Count int `json:"count"`
|
||||
}
|
17
models/member.go
Normal file
17
models/member.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
type Member struct {
|
||||
Id int `json:"id,omitempty"`
|
||||
FirstName string `json:"firstName,omitempty"`
|
||||
LastName string `json:"lastName,omitempty"`
|
||||
Birthday string `json:"birthday,omitempty"`
|
||||
Address string `json:"address,omitempty"`
|
||||
Zip string `json:"zip,omitempty"`
|
||||
Town string `json:"town,omitempty"`
|
||||
Phone string `json:"phone,omitempty"`
|
||||
Email string `json:"email,omitempty"`
|
||||
FirstVisit string `json:"firstVisit,omitempty"`
|
||||
LastVisit string `json:"lastVisit,omitempty"`
|
||||
Group string `json:"group,omitempty"`
|
||||
ResponsiblePerson string `json:"responsiblePerson,omitempty"`
|
||||
}
|
Reference in New Issue
Block a user