Пример #1
0
func (this *Table_role_info) Init() {
	this.OrmTableDef = orm.NewOrmTableDef()
	this.TableName = "role_info"
	this.FieldKeys = append(this.FieldKeys, "role_id")
	this.Fields["role_id"] = orm.NewOrmField("role_id", "uint64")
	this.PrimaryKey = append(this.PrimaryKey, this.Fields["role_id"])
	this.FieldKeys = append(this.FieldKeys, "user_id")
	this.Fields["user_id"] = orm.NewOrmField("user_id", "int64")
}
Пример #2
0
func (this *Table_user_info) Init() {
	this.OrmTableDef = orm.NewOrmTableDef()
	this.TableName = "user_info"
	this.FieldKeys = append(this.FieldKeys, "user_id")
	this.Fields["user_id"] = orm.NewOrmField("user_id", "int64")
	this.PrimaryKey = append(this.PrimaryKey, this.Fields["user_id"])
	this.FieldKeys = append(this.FieldKeys, "account")
	this.Fields["account"] = orm.NewOrmField("account", "string")
	this.FieldKeys = append(this.FieldKeys, "pwd")
	this.Fields["pwd"] = orm.NewOrmField("pwd", "string")
	this.FieldKeys = append(this.FieldKeys, "addtime")
	this.Fields["addtime"] = orm.NewOrmField("addtime", "int32")
	this.FieldKeys = append(this.FieldKeys, "ip")
	this.Fields["ip"] = orm.NewOrmField("ip", "string")
	this.FieldKeys = append(this.FieldKeys, "pt_code")
	this.Fields["pt_code"] = orm.NewOrmField("pt_code", "string")
	this.FieldKeys = append(this.FieldKeys, "role_id")
	this.Fields["role_id"] = orm.NewOrmField("role_id", "int64")
	this.FieldKeys = append(this.FieldKeys, "lasttime")
	this.Fields["lasttime"] = orm.NewOrmField("lasttime", "int32")
}
Пример #3
0
func (this *Table_user_pt_login) Init() {
	this.OrmTableDef = orm.NewOrmTableDef()
	this.TableName = "user_pt_login"
	this.FieldKeys = append(this.FieldKeys, "pt_code")
	this.Fields["pt_code"] = orm.NewOrmField("pt_code", "string")
	this.PrimaryKey = append(this.PrimaryKey, this.Fields["pt_code"])
	this.FieldKeys = append(this.FieldKeys, "account")
	this.Fields["account"] = orm.NewOrmField("account", "string")
	this.PrimaryKey = append(this.PrimaryKey, this.Fields["account"])
	this.FieldKeys = append(this.FieldKeys, "createtime")
	this.Fields["createtime"] = orm.NewOrmField("createtime", "int32")
	this.FieldKeys = append(this.FieldKeys, "visittime")
	this.Fields["visittime"] = orm.NewOrmField("visittime", "int32")
	this.FieldKeys = append(this.FieldKeys, "param1")
	this.Fields["param1"] = orm.NewOrmField("param1", "string")
	this.FieldKeys = append(this.FieldKeys, "param2")
	this.Fields["param2"] = orm.NewOrmField("param2", "string")
	this.FieldKeys = append(this.FieldKeys, "param3")
	this.Fields["param3"] = orm.NewOrmField("param3", "string")
	this.FieldKeys = append(this.FieldKeys, "status")
	this.Fields["status"] = orm.NewOrmField("status", "int8")
}