package report_chapter_permission_mapping

import (
	"time"
)

// ReportChapterPermissionMapping 报告章节的权限关系表
type ReportChapterPermissionMapping struct {
	ReportChapterPermissionMappingID int       `gorm:"primaryKey;column:report_chapter_permission_mapping_id" json:"report_chapter_permission_mapping_id"`
	ReportChapterID                  int       `gorm:"column:report_chapter_id" json:"report_chapter_id"`     // 报告章节的id
	ChartPermissionID                int       `gorm:"column:chart_permission_id" json:"chart_permission_id"` // 权限id
	CreateTime                       time.Time `gorm:"column:create_time" json:"create_time"`
}

// TableName get sql table name.获取数据库表名
func (m *ReportChapterPermissionMapping) TableName() string {
	return "report_chapter_permission_mapping"
}

// ReportChapterPermissionMappingColumns get sql column name.获取数据库列名
var ReportChapterPermissionMappingColumns = struct {
	ReportChapterPermissionMappingID string
	ReportChapterID                  string
	ChartPermissionID                string
	CreateTime                       string
}{
	ReportChapterPermissionMappingID: "report_chapter_permission_mapping_id",
	ReportChapterID:                  "report_chapter_id",
	ChartPermissionID:                "chart_permission_id",
	CreateTime:                       "create_time",
}
