org.go 1001 字节
package models

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

type Org struct {
	tableName string `pg:"users.org" comment:"组织"`
	// 组织ID
	OrgId int64 `pg:",pk"  comment:"组织ID"`
	// 企业id
	CompanyId int64 `comment:"企业id"`
	// 创建时间
	CreatedAt time.Time `comment:"创建时间"`
	// 更新时间
	UpdatedAt time.Time `comment:"更新时间"`
	// 删除时间
	DeletedAt time.Time `comment:"删除时间"`
	// 组织编码
	OrgCode string `comment:"组织编码"`
	// 组织名称
	OrgName string `comment:"组织名称"`
	// 扩展数据
	Ext *domain.Ext `comment:"扩展数据"`
	// 是否是组织标识 1:是 2:不是
	IsOrg int `comment:"是否是组织标识 1:是 2:不是"`
	// 组织状态 1:启用 2:禁用 3.删除
	OrgStatus int `comment:"组织状态 1:启用 2:禁用 3.删除"`
	// 父级ID
	ParentId int64 `comment:"父级ID"`
	// 父级节点路径("0,11,12,")
	ParentPath string `comment:"父级节点路径"`
}