Initial commit.
This commit is contained in:
29
model/ansprechpartner.go
Normal file
29
model/ansprechpartner.go
Normal file
@ -0,0 +1,29 @@
|
||||
package model
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Gender int
|
||||
|
||||
const (
|
||||
_ Gender = iota
|
||||
Male
|
||||
Female
|
||||
Other
|
||||
)
|
||||
|
||||
type Ansprechpartner struct {
|
||||
gorm.Model
|
||||
ImageURL string `json:"image_url"`
|
||||
Title string `json:"title"`
|
||||
FirstName string `json:"first_name"`
|
||||
LastName string `json:"last_name"`
|
||||
LastTitle string `json:"last_title"`
|
||||
EMail string `json:"e_mail" gorm:"email;unique;not null"`
|
||||
Phone string `json:"phone"`
|
||||
Mobile string `json:"mobile"`
|
||||
Notes string `json:"notes"`
|
||||
Description string `json:"description"`
|
||||
Active bool `json:"active"`
|
||||
Gender Gender `json:"gender"`
|
||||
Firmen []*Firma `json:"firmen" gorm:"many2many:firma_ansprechpartner"`
|
||||
}
|
Reference in New Issue
Block a user