// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.

package model

import (
	"time"

	"gorm.io/gorm"
)

const TableNameWpChatroomMember = "wp_chatroom_member"

// WpChatroomMember mapped from table <wp_chatroom_member>
type WpChatroomMember struct {
	ID        int64          `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	CreatedAt time.Time      `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
	UpdatedAt time.Time      `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
	Status    int64          `gorm:"column:status;default:1;comment:Status 1: normal 2: ban | 状态 1 正常 2 禁用" json:"status"`              // Status 1: normal 2: ban | 状态 1 正常 2 禁用
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"`                                    // Delete Time | 删除日期
	WxWxid    string         `gorm:"column:wx_wxid;comment:属主微信id" json:"wx_wxid"`                                                      // 属主微信id
	Wxid      string         `gorm:"column:wxid;comment:微信id" json:"wxid"`                                                              // 微信id
	Nickname  string         `gorm:"column:nickname;not null;comment:微信昵称 群备注名称" json:"nickname"`                                       // 微信昵称 群备注名称
	Avatar    string         `gorm:"column:avatar;not null;comment:头像" json:"avatar"`                                                   // 头像
}

// TableName WpChatroomMember's table name
func (*WpChatroomMember) TableName() string {
	return TableNameWpChatroomMember
}
