role_user.go 460 字节
package models

import "time"

type RoleUser struct {
	tableName struct{}   `pg:"role_user" comment:"角色用户关系"`
	Id        int64      `pg:"pk:id" comment:"ID"`
	RoleId    int64      `comment:"角色ID"`
	UserId    int64      `comment:"用户ID"`
	CompanyId int64      `comment:"公司ID"`
	CreatedAt time.Time  `comment:"创建时间"`
	UpdatedAt time.Time  `comment:"更新时间"`
	DeletedAt *time.Time `comment:"删除时间" pg:",soft_delete"`
}