// Code generated by gormcol. DO NOT EDIT.

package dbmodel

import "git.ma-al.com/goc_marek/gormcol"

const TableNamePsBadge = "ps_badge"

// PsBadge mapped from table <ps_badge>
type PsBadge struct {
	IDBadge       int32  `gorm:"column:id_badge;primaryKey;autoIncrement:true" json:"id_badge"`
	IDPsBadge     int32  `gorm:"column:id_ps_badge;not null" json:"id_ps_badge"`
	Type          string `gorm:"column:type;not null" json:"type"`
	IDGroup       int32  `gorm:"column:id_group;not null" json:"id_group"`
	GroupPosition int32  `gorm:"column:group_position;not null" json:"group_position"`
	Scoring       int32  `gorm:"column:scoring;not null" json:"scoring"`
	Awb           *int32 `gorm:"column:awb" json:"awb"`
	Validated     bool   `gorm:"column:validated;not null" json:"validated"`
}

// TableName PsBadge's table name
func (*PsBadge) TableName() string {
	return TableNamePsBadge
}

var PsBadgeCols = struct {
	IDBadge gormcol.Field
	IDPsBadge gormcol.Field
	Type gormcol.Field
	IDGroup gormcol.Field
	GroupPosition gormcol.Field
	Scoring gormcol.Field
	Awb gormcol.Field
	Validated gormcol.Field
}{
	IDBadge: gormcol.Field{}.Set((&PsBadge{}).TableName(), "id_badge"),
	IDPsBadge: gormcol.Field{}.Set((&PsBadge{}).TableName(), "id_ps_badge"),
	Type: gormcol.Field{}.Set((&PsBadge{}).TableName(), "type"),
	IDGroup: gormcol.Field{}.Set((&PsBadge{}).TableName(), "id_group"),
	GroupPosition: gormcol.Field{}.Set((&PsBadge{}).TableName(), "group_position"),
	Scoring: gormcol.Field{}.Set((&PsBadge{}).TableName(), "scoring"),
	Awb: gormcol.Field{}.Set((&PsBadge{}).TableName(), "awb"),
	Validated: gormcol.Field{}.Set((&PsBadge{}).TableName(), "validated"),
}
