I am batman
This commit is contained in:
15
internal/models/clientModel.go
Normal file
15
internal/models/clientModel.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type Client struct {
|
||||
gorm.Model
|
||||
Name string `gorm:"not null"`
|
||||
Email string `gorm:"uniqueIndex;not null"`
|
||||
Phone string
|
||||
|
||||
Users []User
|
||||
Tickets []Ticket
|
||||
}
|
||||
Reference in New Issue
Block a user