14 lines
445 B
Go
14 lines
445 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Insurance struct {
|
|
ID uint `gorm:"primary_key" json:"id"`
|
|
OwnerID uint `gorm:"not null" json:"owner_id" binding:"numeric"`
|
|
Company string `json:"company" binding:"safe_content"`
|
|
Reference string `json:"reference" binding:"safe_content"`
|
|
Notes string `json:"notes" binding:"safe_content"`
|
|
StartDate time.Time `json:"start_date"`
|
|
EndDate time.Time `json:"end_date"`
|
|
}
|