package event

import "time"

type TenantEvent struct {
	OrgId        uint64
	OrgEventType OrgEventType
	EventTime    *time.Time
}

type OrgEventType string

const (
	OrgEventTypeActivate OrgEventType = "activate"
	OrgEventTypeCreate   OrgEventType = "create"
	OrgEventTypeUpdate   OrgEventType = "update"
	OrgEventTypeDelete   OrgEventType = "delete"
)

const (
	TenantEventTypeViewEmail EventType = "view_email"
)

type TenantPlanEvent struct {
	TenantID      uint64 `json:"tenant_id"`
	ChangedPlan   string `json:"changed_plan"`
	ChangedStatus string `json:"changed_status"`
	EffectivePlan string `json:"effective_plan"`
}
