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.
17 lines
643 B
17 lines
643 B
package model
|
|
|
|
import (
|
|
"gorm.io/plugin/soft_delete"
|
|
"time"
|
|
)
|
|
|
|
type GroupMember struct {
|
|
ID int32 `json:"id" gorm:"primarykey"`
|
|
CreatedAt time.Time `json:"createAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
DeletedAt soft_delete.DeletedAt `json:"deletedAt"`
|
|
UserId int32 `json:"userId" gorm:"index;comment:'用户ID'"`
|
|
GroupId int32 `json:"groupId" gorm:"index;comment:'群组ID'"`
|
|
Nickname string `json:"nickname" gorm:"type:varchar(350);comment:'昵称"`
|
|
Mute int16 `json:"mute" gorm:"comment:'是否禁言'"`
|
|
}
|
|
|