users_base.go 860 字节
package models

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

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