summaryrefslogtreecommitdiff
path: root/models/folders.go
blob: d823ba070b11e100ed97ea54174a548fe1a82bf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package models

import (
	"gorm.io/gorm"
)

type Folder struct {
	gorm.Model
	UserEmail string `gorm:"index"`

	Name      string
	IMAPName  string
	IconOpen  string
	IconClose string
	ParentID  *uint

	UnreadCount int `gorm:"default:0"`
	TotalCount  int `gorm:"default:0"`
	SortOrder   int `gorm:"default:0"`
}