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"`
}
