You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
642 B

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