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

  1. package Models
  2. import (
  3. "time"
  4. "github.com/gofrs/uuid"
  5. )
  6. type Subscription struct {
  7. Base
  8. Name string `gorm:""`
  9. Email string `gorm:"not null"`
  10. }
  11. type SubscriptionEmail struct {
  12. Base
  13. Subject string `gorm:"not null"`
  14. Content string `gorm:"not null"`
  15. SendAt *time.Time `gorm:"not null"`
  16. SentAt *time.Time `gorm:"not null"`
  17. }
  18. type SubscriptionEmailAttachment struct {
  19. Base
  20. SubscriptionEmailId uuid.UUID `gorm:"type:uuid;column:subscription_email_foreign_key;not null;"`
  21. Name string `gorm:"not null"`
  22. Filepath string `gorm:"not null"`
  23. Mimetype string `gorm:"not null"`
  24. }