审查视图

pkg/infrastructure/pg/models/role_user.go 442 字节
1 2 3 4 5 6 7 8 9 10 11 12
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:"更新时间"`
郑周 authored
13
	DeletedAt *time.Time `comment:"删除时间"`
14
}