init
This commit is contained in:
@@ -7,8 +7,9 @@ import (
|
||||
)
|
||||
|
||||
type ChannelUser struct {
|
||||
ChannelID uuid.UUID `gorm:"primaryKey" json:"channel_id"`
|
||||
UserID uuid.UUID `gorm:"primaryKey" json:"user_id"`
|
||||
ID uuid.UUID `gorm:"primaryKey" json:"id"`
|
||||
ChannelID uuid.UUID `gorm:"index;not null" json:"channel_id"`
|
||||
UserID uuid.UUID `gorm:"index;not null" json:"user_id"`
|
||||
|
||||
Role string `gorm:"default:'member'" json:"role"`
|
||||
JoinedAt time.Time `gorm:"autoCreateTime" json:"joined_at"`
|
||||
|
||||
Reference in New Issue
Block a user