Added reset password route
This commit is contained in:
@@ -22,6 +22,20 @@ type Company struct {
|
||||
Devices []Device `json:"devices"`
|
||||
}
|
||||
|
||||
type School struct {
|
||||
BaseModel
|
||||
Name string `json:"name"`
|
||||
Address string `json:"address"`
|
||||
Students []Student `json:"students" gorm:"foreignKey:SchoolID"`
|
||||
}
|
||||
|
||||
type Student struct {
|
||||
BaseModel
|
||||
Name string `json:"name"`
|
||||
Age int `json:"age"`
|
||||
SchoolID uint `json:"schoolId" gorm:"index"`
|
||||
}
|
||||
|
||||
type CompanyShortResponse struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
|
||||
Reference in New Issue
Block a user