aboutsummaryrefslogtreecommitdiff
path: root/models/mail/folder.go
blob: 3c46becd10db3362523590b69546f25106b52890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package mail

import "gorm.io/gorm"

type Folder struct {
	gorm.Model
	Name      string  `gorm:"not null" json:"name"`
	Slug      string  `gorm:"not null;index" json:"slug"`
	MailboxID uint    `gorm:"not null;index" json:"mailbox_id"`
	Mailbox   Mailbox `gorm:"foreignKey:MailboxID" json:"mailbox"`
	IsSystem  bool    `gorm:"not null;default:false" json:"is_system"`
	Position  int     `gorm:"not null;default:0" json:"position"`
}