func (q contentRoleTypeQuery) OneP() *ContentRoleType {
	o, err := q.One()
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
OneP returns a single contentRoleType record from the query, and panics on error.
package mdbmodels
import (
	"bytes"
	"database/sql"
	"fmt"
	"reflect"
	"strings"
	"sync"
	"time"
	"github.com/Bnei-Baruch/sqlboiler/boil"
	"github.com/Bnei-Baruch/sqlboiler/queries"
	"github.com/Bnei-Baruch/sqlboiler/queries/qm"
	"github.com/Bnei-Baruch/sqlboiler/strmangle"
	"github.com/pkg/errors"
	"gopkg.in/volatiletech/null.v6"
)
type ContentRoleType struct {
	ID          int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name        string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	R *contentRoleTypeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L contentRoleTypeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}
var ContentRoleTypeColumns = struct {
	ID          string
	Name        string
	Description string
}{
	ID:          "id",
	Name:        "name",
	Description: "description",
}
type contentRoleTypeR struct {
	RoleContentUnitsPersons ContentUnitsPersonSlice
}
type contentRoleTypeL struct{}
var (
	contentRoleTypeColumns               = []string{"id", "name", "description"}
	contentRoleTypeColumnsWithoutDefault = []string{"name", "description"}
	contentRoleTypeColumnsWithDefault    = []string{"id"}
	contentRoleTypePrimaryKeyColumns     = []string{"id"}
)
type (
	ContentRoleTypeSlice []*ContentRoleType
	contentRoleTypeQuery struct {
		*queries.Query
	}
)
var (
	contentRoleTypeType                 = reflect.TypeOf(&ContentRoleType{})
	contentRoleTypeMapping              = queries.MakeStructMapping(contentRoleTypeType)
	contentRoleTypePrimaryKeyMapping, _ = queries.BindMapping(contentRoleTypeType, contentRoleTypeMapping, contentRoleTypePrimaryKeyColumns)
	contentRoleTypeInsertCacheMut       sync.RWMutex
	contentRoleTypeInsertCache          = make(map[string]insertCache)
	contentRoleTypeUpdateCacheMut       sync.RWMutex
	contentRoleTypeUpdateCache          = make(map[string]updateCache)
	contentRoleTypeUpsertCacheMut       sync.RWMutex
	contentRoleTypeUpsertCache          = make(map[string]insertCache)
)
var (
	_ = time.Second
	_ = bytes.MinRead
)