legalgo-BE-go/database/staff_model.go

17 lines
595 B
Go
Raw Permalink Normal View History

2025-02-26 22:28:19 +08:00
package database
import (
2025-02-24 16:48:20 +08:00
"time"
)
type Staff struct {
ID string `gorm:"primaryKey" json:"id"`
2025-03-06 23:55:46 +08:00
Name string `gorm:"default:null" 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"`
DeletedAt time.Time `gorm:"default:null" json:"deleted_at"`
}