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"`
|
|
|
|
Workgroups []*Workgroup `gorm:"many2many:users_workgroups;"`
|
2020-07-16 09:28:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type ProfileChanges struct {
|
|
|
|
Name *string `json:"name"`
|
|
|
|
}
|