File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ import (
55)
66
77type Certificate struct {
8- Serial string `gorm:"primaryKey;size:255"`
9- CreatedAt time.Time
10- UpdatedAt time.Time
11- Login string `gorm:"not null;index;size:255"`
12- UID string `gorm:"index;size:255"`
13- LastConnect * time.Time
14- ValidTill * time.Time
8+ Serial string `gorm:"primaryKey;size:255"`
9+ CreatedAt time.Time `gorm:"index;type:timestamp"`
10+ UpdatedAt time.Time `gorm:"type:timestamp"`
11+ Login string `gorm:"not null;index;size:255"`
12+ UID string `gorm:"index;size:255"`
13+ LastConnect * time.Time `gorm:"type:timestamp"`
14+ ValidTill * time.Time `gorm:"type:timestamp"`
1515}
1616
1717type CertificateDTO struct {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const (
1212
1313type Change struct {
1414 ID uint `gorm:"primaryKey"`
15- CreatedAt time.Time `gorm:"index"`
15+ CreatedAt time.Time `gorm:"index;type:timestamp "`
1616 Type string `gorm:"size:255"`
1717 MissionID uint `gorm:"index;not null"`
1818 CreatorUID string `gorm:"size:255"`
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ type Feed2 struct {
6363 Heading string `gorm:"size:100"`
6464 Range string `gorm:"size:100"`
6565 User string `gorm:"size:255;index"`
66- Scope string `gorm:"size:255"`
66+ Scope string `gorm:"size:255;index "`
6767}
6868
6969type Feed2DTO struct {
You can’t perform that action at this time.
0 commit comments