This commit is contained in:
Nedim
2023-09-19 08:15:42 +02:00
parent c2d6923375
commit 85e695b2d8
7 changed files with 287 additions and 49 deletions

View File

@@ -5,21 +5,10 @@ import "github.com/jinzhu/gorm"
type Company struct {
gorm.Model
Name string
Password string
Email string
Avatar string
Users []User
Devices []Device
}
// func FetchCompanies(companies *[]Company) (err error) {
// db := gorm.GetDb()
// if err = db.Find(companies).Error; err != nil {
// return err
// }
// return nil
// }
func (Company) Update() (bool, error) {
return false, nil