package models

import "time"

type Event struct {
	Id           uint      `gorm:"primary key" json:"id"`
	Name         string    `gorm:"size:40;not null" json:"name"`
	Description  string    `gorm:"not null" json:"description"`
	ExpectedDate time.Time `gorm:"not null" json:"startDt"`
	UserId       uint      `gorm:"size:40;not null" json:"user"`
	Channel      string    `gorm:"size:40;not null" json:"channel"`
	EventType    string    `gorm:"size:1;not null;default:O" json:"eventtype"`   // O = Open, C = Closed
	Transmitted  string    `gorm:"size:1;not null;default:N" json:"transmitted"` // Y = Already transmitted, N = Not transmitted yet
}
