mirror of https://github.com/kone-net/go-chat.git
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.
15 lines
474 B
15 lines
474 B
package model |
|
|
|
import ( |
|
"gorm.io/plugin/soft_delete" |
|
"time" |
|
) |
|
|
|
type UserFriend 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'"` |
|
FriendId int32 `json:"friendId" gorm:"index;comment:'好友ID'"` |
|
}
|
|
|