&DBColumn{ID:7,Name:"reset_password_sent_at",Type:"timestamp without time zone",NotNull:false,PrimaryKey:false,UniqueKey:false,FKeyTable:"",FKeyColID:[]int16(nil)},
&DBColumn{ID:8,Name:"remember_created_at",Type:"timestamp without time zone",NotNull:false,PrimaryKey:false,UniqueKey:false,FKeyTable:"",FKeyColID:[]int16(nil)},
&DBColumn{ID:9,Name:"created_at",Type:"timestamp without time zone",NotNull:true,PrimaryKey:false,UniqueKey:false,FKeyTable:"",FKeyColID:[]int16(nil)},
&DBColumn{ID:10,Name:"updated_at",Type:"timestamp without time zone",NotNull:true,PrimaryKey:false,UniqueKey:false,FKeyTable:"",FKeyColID:[]int16(nil)}},
&DBColumn{ID:8,Name:"reset_password_sent_at",Type:"timestamp without time zone",NotNull:false,PrimaryKey:false,UniqueKey:false,FKeyTable:"",FKeyColID:[]int16(nil)},
&DBColumn{ID:9,Name:"remember_created_at",Type:"timestamp without time zone",NotNull:false,PrimaryKey:false,UniqueKey:false,FKeyTable:"",FKeyColID:[]int16(nil)},
&DBColumn{ID:10,Name:"created_at",Type:"timestamp without time zone",NotNull:true,PrimaryKey:false,UniqueKey:false,FKeyTable:"",FKeyColID:[]int16(nil)},
&DBColumn{ID:11,Name:"updated_at",Type:"timestamp without time zone",NotNull:true,PrimaryKey:false,UniqueKey:false,FKeyTable:"",FKeyColID:[]int16(nil)}},
&DBColumn{ID:6,Name:"created_at",Type:"timestamp without time zone",NotNull:true,PrimaryKey:false,UniqueKey:false,FKeyTable:"",FKeyColID:[]int16(nil)},
&DBColumn{ID:7,Name:"updated_at",Type:"timestamp without time zone",NotNull:true,PrimaryKey:false,UniqueKey:false,FKeyTable:"",FKeyColID:[]int16(nil)},
&DBColumn{ID:6,Name:"due_date",Type:"timestamp without time zone",NotNull:false,PrimaryKey:false,UniqueKey:false,FKeyTable:"",FKeyColID:[]int16(nil)},
&DBColumn{ID:7,Name:"returned",Type:"timestamp without time zone",NotNull:false,PrimaryKey:false,UniqueKey:false,FKeyTable:"",FKeyColID:[]int16(nil)}},
}
schema:=&DBSchema{
t:make(map[string]*DBTableInfo),
rm:make(map[string]map[string]*DBRel),
al:make(map[string]struct{}),
}
aliases:=map[string][]string{
"users":[]string{"mes"},
}
fori,t:=rangetables{
schema.updateSchema(t,columns[i],aliases)
}
vars:=NewVariables(map[string]string{
"account_id":"select account_id from users where id = $user_id",