// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsRangePrice = "ps_range_price"

// PsRangePrice mapped from table <ps_range_price>
type PsRangePrice struct {
	IDRangePrice int32   `gorm:"column:id_range_price;primaryKey;autoIncrement:true" json:"id_range_price"`
	IDCarrier    int32   `gorm:"column:id_carrier;not null;uniqueIndex:id_carrier,priority:1" json:"id_carrier"`
	Delimiter1   float64 `gorm:"column:delimiter1;not null;uniqueIndex:id_carrier,priority:2" json:"delimiter1"`
	Delimiter2   float64 `gorm:"column:delimiter2;not null;uniqueIndex:id_carrier,priority:3" json:"delimiter2"`
}

// TableName PsRangePrice's table name
func (*PsRangePrice) TableName() string {
	return TableNamePsRangePrice
}

var PsRangePriceCols = struct {
	IDRangePrice gormcol.Field
	IDCarrier gormcol.Field
	Delimiter1 gormcol.Field
	Delimiter2 gormcol.Field
}{
	IDRangePrice: gormcol.Field{}.Set((&PsRangePrice{}).TableName(), "id_range_price"),
	IDCarrier: gormcol.Field{}.Set((&PsRangePrice{}).TableName(), "id_carrier"),
	Delimiter1: gormcol.Field{}.Set((&PsRangePrice{}).TableName(), "delimiter1"),
	Delimiter2: gormcol.Field{}.Set((&PsRangePrice{}).TableName(), "delimiter2"),
}
