// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsMemcachedServer = "ps_memcached_servers"

// PsMemcachedServer mapped from table <ps_memcached_servers>
type PsMemcachedServer struct {
	IDMemcachedServer int32  `gorm:"column:id_memcached_server;primaryKey;autoIncrement:true" json:"id_memcached_server"`
	IP                string `gorm:"column:ip;not null" json:"ip"`
	Port              int32  `gorm:"column:port;not null" json:"port"`
	Weight            int32  `gorm:"column:weight;not null" json:"weight"`
}

// TableName PsMemcachedServer's table name
func (*PsMemcachedServer) TableName() string {
	return TableNamePsMemcachedServer
}

var PsMemcachedServerCols = struct {
	IDMemcachedServer gormcol.Field
	IP gormcol.Field
	Port gormcol.Field
	Weight gormcol.Field
}{
	IDMemcachedServer: gormcol.Field{}.Set((&PsMemcachedServer{}).TableName(), "id_memcached_server"),
	IP: gormcol.Field{}.Set((&PsMemcachedServer{}).TableName(), "ip"),
	Port: gormcol.Field{}.Set((&PsMemcachedServer{}).TableName(), "port"),
	Weight: gormcol.Field{}.Set((&PsMemcachedServer{}).TableName(), "weight"),
}
