2020-07-16 09:28:27 +02:00
|
|
|
package model
|
|
|
|
|
2020-07-21 18:10:03 +02:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/jinzhu/gorm"
|
|
|
|
)
|
2020-07-16 09:28:27 +02:00
|
|
|
|
|
|
|
type User struct {
|
2020-07-21 18:10:03 +02:00
|
|
|
gorm.Model
|
|
|
|
Name *string `json:"name"`
|
|
|
|
Email string `json:"email" gorm:"unique;not null"`
|
|
|
|
ConnectedAt time.Time `json:"connectedAt"`
|
2020-10-02 16:37:24 +02:00
|
|
|
Workgroups []*Workgroup `gorm:"many2many:users_workgroups;association_autoupdate:false"`
|
2020-07-16 09:28:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type ProfileChanges struct {
|
|
|
|
Name *string `json:"name"`
|
|
|
|
}
|