users_base.go 858 字节
package models

import (
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/domain"
	"time"
)

type UserBase struct {
	tableName string `pg:"users.user_base,alias:user_base" comment:"用户基础"`
	// 用户基础数据id
	UserBaseId int64 `pg:",pk" comment:"用户基础数据id"`
	// 用户信息
	UserInfo *domain.UserInfo `comment:"用户信息"`
	// 账号
	Account string `comment:"手机号码"`
	// 密码
	Password string `comment:"密码"`
	// IM信息
	Im *domain.Im `comment:"IM信息"`
	// 关联的用户 (冗余)
	RelatedUser []int64 `pg:",array" comment:"关联的用户 (冗余)"`
	// 账号状态 1:正常 2.禁用 3:注销
	Status int `comment:"账号状态 1:正常 2.禁用 3:注销"`
	// 创建时间
	CreatedAt time.Time `comment:"创建时间"`
	// 更新时间
	UpdatedAt time.Time `comment:"更新时间"`
}