// 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 TableNameWpChatroom = "wp_chatroom"

// WpChatroom mapped from table <wp_chatroom>
type WpChatroom 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
	ChatroomID   string         `gorm:"column:chatroom_id;not null;comment:微信id 公众号微信ID" json:"chatroom_id"`                               // 微信id 公众号微信ID
	Nickname     string         `gorm:"column:nickname;not null;comment:微信昵称 群备注名称" json:"nickname"`                                       // 微信昵称 群备注名称
	Owner        string         `gorm:"column:owner;comment:群主微信id" json:"owner"`                                                          // 群主微信id
	Avatar       string         `gorm:"column:avatar;not null;comment:头像" json:"avatar"`                                                   // 头像
	MemberList   string         `gorm:"column:member_list" json:"member_list"`
	ShowNameList string         `gorm:"column:show_name_list" json:"show_name_list"`
}

// TableName WpChatroom's table name
func (*WpChatroom) TableName() string {
	return TableNameWpChatroom
}
