feat: login service and implement database storage
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package staffmodel
|
||||
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Staff struct {
|
||||
ID uuid.UUID `gorm:"type:uuid;primaryKey" json:"id"`
|
||||
Email string `gorm:"unique,not null" json:"email"`
|
||||
Password string `gorm:"not null" json:"password"`
|
||||
}
|
||||
Reference in New Issue
Block a user