package Models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/gofrs/uuid"
|
|
)
|
|
|
|
type Subscription struct {
|
|
Base
|
|
Name string `gorm:""`
|
|
Email string `gorm:"not null"`
|
|
}
|
|
|
|
type SubscriptionEmail struct {
|
|
Base
|
|
Subject string `gorm:"not null"`
|
|
Content string `gorm:"not null"`
|
|
SendAt *time.Time `gorm:"not null"`
|
|
SentAt *time.Time `gorm:"not null"`
|
|
}
|
|
|
|
type SubscriptionEmailAttachment struct {
|
|
Base
|
|
SubscriptionEmailId uuid.UUID `gorm:"type:uuid;column:subscription_email_foreign_key;not null;"`
|
|
Name string `gorm:"not null"`
|
|
Filepath string `gorm:"not null"`
|
|
Mimetype string `gorm:"not null"`
|
|
}
|