File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,8 @@ type Common struct {
18
18
ID uint64 `gorm:"primaryKey" json:"id,omitempty"`
19
19
CreatedAt time.Time `gorm:"index;<-:create" json:"created_at,omitempty"`
20
20
UpdatedAt time.Time `gorm:"autoUpdateTime" json:"updated_at,omitempty"`
21
- // Do not use soft deletion
22
- // DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at,omitempty"`
23
21
24
- UserID uint64 `json:"-"`
22
+ UserID uint64 `gorm:"index;default:0" json:"-"`
25
23
}
26
24
27
25
func (c * Common ) GetID () uint64 {
Original file line number Diff line number Diff line change 2
2
name : " OfficialAdmin"
3
3
repository : " https://github.com/nezhahq/admin-frontend"
4
4
author : " nezhahq"
5
- version : " v1.3 .0"
5
+ version : " v1.4 .0"
6
6
isadmin : true
7
7
isofficial : true
8
8
- path : " user-dist"
You can’t perform that action at this time.
0 commit comments