role.go 559 字节
package models

import "time"

type Role struct {
	tableName   struct{}   `pg:"role" comment:"角色"`
	Id          int64      `pg:"pk:id" comment:"ID"`
	Name        string     `comment:"角色名称"`
	Type        int        `comment:"角色类型(0角色可删、1系统预置角色不可删)" pg:",use_zero"`
	Description string     `comment:"角色描述"`
	CompanyId   int64      `comment:"公司ID"`
	CreatedAt   time.Time  `comment:"创建时间"`
	UpdatedAt   time.Time  `comment:"更新时间"`
	DeletedAt   *time.Time `comment:"删除时间"`
}