16 lines
536 B
Go
16 lines
536 B
Go
package database
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Staff struct {
|
|
ID string `gorm:"primaryKey" json:"id"`
|
|
Name string `gorm:"default:null;unique" json:"name"`
|
|
ProfilePicture string `gorm:"default:null" json:"profile_picture"`
|
|
Email string `gorm:"unique;not null" json:"email"`
|
|
Password string `gorm:"not null" json:"password"`
|
|
CreatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"created_at"`
|
|
UpdatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"updated_at"`
|
|
}
|