16 lines
339 B
Go
16 lines
339 B
Go
|
package model
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type User struct {
|
||
|
ID *uint `gorm:"primary_key"`
|
||
|
Name *string `json:"name"`
|
||
|
Email string `json:"email" gorm:"unique;not null"`
|
||
|
ConnectedAt time.Time `json:"connectedAt"`
|
||
|
CreatedAt time.Time `json:"createdAt"`
|
||
|
}
|
||
|
|
||
|
type ProfileChanges struct {
|
||
|
Name *string `json:"name"`
|
||
|
}
|