func (s *Volume) View() reform.View {
	return VolumeTable
}
View returns View object for that struct.
package models
import (
	"fmt"
	"strings"
	"gopkg.in/reform.v1"
	"gopkg.in/reform.v1/parse"
)
type volumeTableType struct {
	s parse.StructInfo
	z []interface{}
}
func (v *volumeTableType) Schema() string {
	return v.s.SQLSchema
}
func (v *volumeTableType) Name() string {
	return v.s.SQLName
}
func (v *volumeTableType) Columns() []string {
	return []string{"id", "book_id", "type", "created_at", "updated_at"}
}
func (v *volumeTableType) NewStruct() reform.Struct {
	return new(Volume)
}
func (v *volumeTableType) NewRecord() reform.Record {
	return new(Volume)
}
func (v *volumeTableType) PKColumnIndex() uint {
	return uint(v.s.PKFieldIndex)
}
var VolumeTable = &volumeTableType{
	s: parse.StructInfo{Type: "Volume", SQLSchema: "", SQLName: "volumes", Fields: []parse.FieldInfo{{Name: "ID", Type: "int32", Column: "id"}, {Name: "BookID", Type: "int32", Column: "book_id"}, {Name: "Type", Type: "string", Column: "type"}, {Name: "CreatedAt", Type: "time.Time", Column: "created_at"}, {Name: "UpdatedAt", Type: "time.Time", Column: "updated_at"}}, PKFieldIndex: 0},
	z: new(Volume).Values(),
}
func (s Volume) String() string {
	res := make([]string, 5)
	res[0] = "ID: " + reform.Inspect(s.ID, true)
	res[1] = "BookID: " + reform.Inspect(s.BookID, true)
	res[2] = "Type: " + reform.Inspect(s.Type, true)
	res[3] = "CreatedAt: " + reform.Inspect(s.CreatedAt, true)
	res[4] = "UpdatedAt: " + reform.Inspect(s.UpdatedAt, true)
	return strings.Join(res, ", ")
}
func (s *Volume) Values() []interface{} {
	return []interface{}{
		s.ID,
		s.BookID,
		s.Type,
		s.CreatedAt,
		s.UpdatedAt,
	}
}
func (s *Volume) Pointers() []interface{} {
	return []interface{}{
		&s.ID,
		&s.BookID,
		&s.Type,
		&s.CreatedAt,
		&s.UpdatedAt,
	}
}