// Code generated by gormcol. DO NOT EDIT.

package dbmodel

import (
	"git.ma-al.com/goc_marek/gormcol"
	"time"
)

const TableNamePsReferrer = "ps_referrer"

// PsReferrer mapped from table <ps_referrer>
type PsReferrer struct {
	IDReferrer           int32     `gorm:"column:id_referrer;primaryKey;autoIncrement:true" json:"id_referrer"`
	Name                 string    `gorm:"column:name;not null" json:"name"`
	Passwd               *string   `gorm:"column:passwd" json:"passwd"`
	HTTPRefererRegexp    *string   `gorm:"column:http_referer_regexp" json:"http_referer_regexp"`
	HTTPRefererLike      *string   `gorm:"column:http_referer_like" json:"http_referer_like"`
	RequestURIRegexp     *string   `gorm:"column:request_uri_regexp" json:"request_uri_regexp"`
	RequestURILike       *string   `gorm:"column:request_uri_like" json:"request_uri_like"`
	HTTPRefererRegexpNot *string   `gorm:"column:http_referer_regexp_not" json:"http_referer_regexp_not"`
	HTTPRefererLikeNot   *string   `gorm:"column:http_referer_like_not" json:"http_referer_like_not"`
	RequestURIRegexpNot  *string   `gorm:"column:request_uri_regexp_not" json:"request_uri_regexp_not"`
	RequestURILikeNot    *string   `gorm:"column:request_uri_like_not" json:"request_uri_like_not"`
	BaseFee              float64   `gorm:"column:base_fee;not null;default:0.00" json:"base_fee"`
	PercentFee           float64   `gorm:"column:percent_fee;not null;default:0.00" json:"percent_fee"`
	ClickFee             float64   `gorm:"column:click_fee;not null;default:0.00" json:"click_fee"`
	DateAdd              time.Time `gorm:"column:date_add;not null" json:"date_add"`
}

// TableName PsReferrer's table name
func (*PsReferrer) TableName() string {
	return TableNamePsReferrer
}

var PsReferrerCols = struct {
	IDReferrer gormcol.Field
	Name gormcol.Field
	Passwd gormcol.Field
	HTTPRefererRegexp gormcol.Field
	HTTPRefererLike gormcol.Field
	RequestURIRegexp gormcol.Field
	RequestURILike gormcol.Field
	HTTPRefererRegexpNot gormcol.Field
	HTTPRefererLikeNot gormcol.Field
	RequestURIRegexpNot gormcol.Field
	RequestURILikeNot gormcol.Field
	BaseFee gormcol.Field
	PercentFee gormcol.Field
	ClickFee gormcol.Field
	DateAdd gormcol.Field
}{
	IDReferrer: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "id_referrer"),
	Name: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "name"),
	Passwd: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "passwd"),
	HTTPRefererRegexp: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "http_referer_regexp"),
	HTTPRefererLike: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "http_referer_like"),
	RequestURIRegexp: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "request_uri_regexp"),
	RequestURILike: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "request_uri_like"),
	HTTPRefererRegexpNot: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "http_referer_regexp_not"),
	HTTPRefererLikeNot: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "http_referer_like_not"),
	RequestURIRegexpNot: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "request_uri_regexp_not"),
	RequestURILikeNot: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "request_uri_like_not"),
	BaseFee: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "base_fee"),
	PercentFee: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "percent_fee"),
	ClickFee: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "click_fee"),
	DateAdd: gormcol.Field{}.Set((&PsReferrer{}).TableName(), "date_add"),
}
