Added reset password route

This commit is contained in:
Nedim
2023-10-30 19:21:43 +01:00
parent 75692d7b20
commit 72ccd5e71c
16 changed files with 531 additions and 33 deletions

View File

@@ -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"`