Documentation
¶
Index ¶
- Constants
- type Binary
- func (f *Binary) DBType() *libdomain.DBType
- func (f *Binary) GetInverseProperty() string
- func (f *Binary) GetName() string
- func (f *Binary) GetPosition() int
- func (f *Binary) GetPrimaryKey() bool
- func (f *Binary) GetReference() libdomain.TableInterface
- func (f *Binary) GetReferenceName() string
- func (f *Binary) GetRequired() bool
- func (f *Binary) GoNil() string
- func (f *Binary) GoType() string
- func (f *Binary) GraphqlSchemaType() string
- func (f *Binary) GraphqlType() string
- func (f *Binary) IsNested() bool
- func (r *Binary) IsRepeated() bool
- func (f *Binary) IsStored() bool
- func (r *Binary) IsTranslatable() bool
- func (f *Binary) JSONType() string
- func (f *Binary) NameWithoutID() string
- func (f *Binary) ProtoType() string
- func (f *Binary) ProtoTypeOptional() string
- func (f *Binary) SetPosition(position int)
- func (f *Binary) SetReference(libdomain.TableInterface)
- func (f *Binary) Snake() string
- func (f *Binary) Title() string
- func (f *Binary) TitleWithoutID() string
- func (f *Binary) Type() libdomain.PropertyType
- type Boolean
- func (f *Boolean) DBType() *libdomain.DBType
- func (f *Boolean) GetInverseProperty() string
- func (f *Boolean) GetName() string
- func (f *Boolean) GetPosition() int
- func (f *Boolean) GetPrimaryKey() bool
- func (f *Boolean) GetReference() libdomain.TableInterface
- func (f *Boolean) GetReferenceName() string
- func (f *Boolean) GetRequired() bool
- func (f *Boolean) GoNil() string
- func (f *Boolean) GoType() string
- func (f *Boolean) GraphqlSchemaType() string
- func (f *Boolean) GraphqlType() string
- func (f *Boolean) IsNested() bool
- func (r *Boolean) IsRepeated() bool
- func (f *Boolean) IsStored() bool
- func (r *Boolean) IsTranslatable() bool
- func (f *Boolean) JSONType() string
- func (f *Boolean) NameWithoutID() string
- func (f *Boolean) ProtoType() string
- func (f *Boolean) ProtoTypeOptional() string
- func (f *Boolean) SetPosition(position int)
- func (f *Boolean) SetReference(libdomain.TableInterface)
- func (f *Boolean) Snake() string
- func (f *Boolean) Title() string
- func (f *Boolean) TitleWithoutID() string
- func (f *Boolean) Type() libdomain.PropertyType
- type Date
- func (f *Date) DBType() *libdomain.DBType
- func (f *Date) GetInverseProperty() string
- func (f *Date) GetName() string
- func (f *Date) GetPosition() int
- func (f *Date) GetPrimaryKey() bool
- func (f *Date) GetReference() libdomain.TableInterface
- func (f *Date) GetReferenceName() string
- func (f *Date) GetRequired() bool
- func (f *Date) GoNil() string
- func (f *Date) GoType() string
- func (f *Date) GraphqlSchemaType() string
- func (f *Date) GraphqlType() string
- func (f *Date) IsNested() bool
- func (r *Date) IsRepeated() bool
- func (f *Date) IsStored() bool
- func (r *Date) IsTranslatable() bool
- func (f *Date) JSONType() string
- func (f *Date) NameWithoutID() string
- func (f *Date) ProtoType() string
- func (f *Date) ProtoTypeOptional() string
- func (f *Date) SetPosition(position int)
- func (f *Date) SetReference(libdomain.TableInterface)
- func (f *Date) Snake() string
- func (f *Date) Title() string
- func (f *Date) TitleWithoutID() string
- func (f *Date) Type() libdomain.PropertyType
- type Datetime
- func (f *Datetime) DBType() *libdomain.DBType
- func (f *Datetime) GetInverseProperty() string
- func (f *Datetime) GetName() string
- func (f *Datetime) GetPosition() int
- func (f *Datetime) GetPrimaryKey() bool
- func (f *Datetime) GetReference() libdomain.TableInterface
- func (f *Datetime) GetReferenceName() string
- func (f *Datetime) GetRequired() bool
- func (f *Datetime) GoNil() string
- func (f *Datetime) GoType() string
- func (f *Datetime) GraphqlSchemaType() string
- func (f *Datetime) GraphqlType() string
- func (f *Datetime) IsNested() bool
- func (r *Datetime) IsRepeated() bool
- func (f *Datetime) IsStored() bool
- func (r *Datetime) IsTranslatable() bool
- func (f *Datetime) JSONType() string
- func (f *Datetime) NameWithoutID() string
- func (f *Datetime) ProtoType() string
- func (f *Datetime) ProtoTypeOptional() string
- func (f *Datetime) SetPosition(position int)
- func (f *Datetime) SetReference(libdomain.TableInterface)
- func (f *Datetime) Snake() string
- func (f *Datetime) Title() string
- func (f *Datetime) TitleWithoutID() string
- func (f *Datetime) Type() libdomain.PropertyType
- type Float
- func (f *Float) DBType() *libdomain.DBType
- func (f *Float) GetInverseProperty() string
- func (f *Float) GetName() string
- func (f *Float) GetPosition() int
- func (f *Float) GetPrimaryKey() bool
- func (f *Float) GetReference() libdomain.TableInterface
- func (f *Float) GetReferenceName() string
- func (f *Float) GetRequired() bool
- func (f *Float) GoNil() string
- func (f *Float) GoType() string
- func (f *Float) GraphqlSchemaType() string
- func (f *Float) GraphqlType() string
- func (f *Float) IsNested() bool
- func (r *Float) IsRepeated() bool
- func (f *Float) IsStored() bool
- func (r *Float) IsTranslatable() bool
- func (f *Float) JSONType() string
- func (f *Float) NameWithoutID() string
- func (f *Float) ProtoType() string
- func (f *Float) ProtoTypeOptional() string
- func (f *Float) SetPosition(position int)
- func (f *Float) SetReference(libdomain.TableInterface)
- func (f *Float) Snake() string
- func (f *Float) Title() string
- func (f *Float) TitleWithoutID() string
- func (f *Float) Type() libdomain.PropertyType
- type ID
- func (f *ID) DBType() *libdomain.DBType
- func (f *ID) GetInverseProperty() string
- func (f *ID) GetName() string
- func (f *ID) GetPosition() int
- func (f *ID) GetPrimaryKey() bool
- func (f *ID) GetReference() libdomain.TableInterface
- func (f *ID) GetReferenceName() string
- func (f *ID) GetRequired() bool
- func (f *ID) GoNil() string
- func (f *ID) GoType() string
- func (f *ID) GraphqlSchemaType() string
- func (f *ID) GraphqlType() string
- func (f *ID) IsNested() bool
- func (r *ID) IsRepeated() bool
- func (f *ID) IsStored() bool
- func (r *ID) IsTranslatable() bool
- func (f *ID) JSONType() string
- func (f *ID) NameWithoutID() string
- func (f *ID) ProtoType() string
- func (f *ID) ProtoTypeOptional() string
- func (f *ID) SetPosition(position int)
- func (f *ID) SetReference(libdomain.TableInterface)
- func (f *ID) Snake() string
- func (f *ID) Title() string
- func (f *ID) TitleWithoutID() string
- func (f *ID) Type() libdomain.PropertyType
- type Integer
- func (f *Integer) DBType() *libdomain.DBType
- func (f *Integer) GetInverseProperty() string
- func (f *Integer) GetName() string
- func (f *Integer) GetPosition() int
- func (f *Integer) GetPrimaryKey() bool
- func (f *Integer) GetReference() libdomain.TableInterface
- func (f *Integer) GetReferenceName() string
- func (f *Integer) GetRequired() bool
- func (f *Integer) GoNil() string
- func (f *Integer) GoType() string
- func (f *Integer) GraphqlSchemaType() string
- func (f *Integer) GraphqlType() string
- func (f *Integer) IsNested() bool
- func (r *Integer) IsRepeated() bool
- func (f *Integer) IsStored() bool
- func (r *Integer) IsTranslatable() bool
- func (f *Integer) JSONType() string
- func (f *Integer) NameWithoutID() string
- func (f *Integer) ProtoType() string
- func (f *Integer) ProtoTypeOptional() string
- func (f *Integer) SetPosition(position int)
- func (f *Integer) SetReference(libdomain.TableInterface)
- func (f *Integer) Snake() string
- func (f *Integer) Title() string
- func (f *Integer) TitleWithoutID() string
- func (f *Integer) Type() libdomain.PropertyType
- type JSON
- func (f *JSON) DBType() *libdomain.DBType
- func (f *JSON) GetInverseProperty() string
- func (f *JSON) GetName() string
- func (f *JSON) GetPosition() int
- func (f *JSON) GetPrimaryKey() bool
- func (f *JSON) GetReference() libdomain.TableInterface
- func (f *JSON) GetReferenceName() string
- func (f *JSON) GetRequired() bool
- func (f *JSON) GoNil() string
- func (f *JSON) GoType() string
- func (f *JSON) GraphqlSchemaType() string
- func (f *JSON) GraphqlType() string
- func (f *JSON) IsNested() bool
- func (r *JSON) IsRepeated() bool
- func (f *JSON) IsStored() bool
- func (r *JSON) IsTranslatable() bool
- func (f *JSON) JSONType() string
- func (f *JSON) NameWithoutID() string
- func (f *JSON) ProtoType() string
- func (f *JSON) ProtoTypeOptional() string
- func (f *JSON) SetPosition(position int)
- func (f *JSON) SetReference(libdomain.TableInterface)
- func (f *JSON) Snake() string
- func (f *JSON) Title() string
- func (f *JSON) TitleWithoutID() string
- func (f *JSON) Type() libdomain.PropertyType
- type Many2many
- func (f *Many2many) DBType() *libdomain.DBType
- func (f *Many2many) GetInverseProperty() string
- func (f *Many2many) GetName() string
- func (f *Many2many) GetPosition() int
- func (f *Many2many) GetPrimaryKey() bool
- func (f *Many2many) GetReference() libdomain.TableInterface
- func (f *Many2many) GetReferenceName() string
- func (f *Many2many) GetRequired() bool
- func (f *Many2many) GoNil() string
- func (f *Many2many) GoType() string
- func (f *Many2many) GraphqlSchemaType() string
- func (f *Many2many) GraphqlType() string
- func (f *Many2many) InverseSnake() string
- func (f *Many2many) InverseTitle() string
- func (f *Many2many) IsNested() bool
- func (r *Many2many) IsRepeated() bool
- func (f *Many2many) IsStored() bool
- func (r *Many2many) IsTranslatable() bool
- func (f *Many2many) JSONType() string
- func (f *Many2many) NameWithoutID() string
- func (f *Many2many) ProtoType() string
- func (f *Many2many) ProtoTypeOptional() string
- func (f *Many2many) RelationTitle() string
- func (f *Many2many) SetPosition(position int)
- func (f *Many2many) SetReference(d libdomain.TableInterface)
- func (f *Many2many) Snake() string
- func (f *Many2many) TargetTitle() string
- func (f *Many2many) Title() string
- func (f *Many2many) TitleWithoutID() string
- func (f *Many2many) Type() libdomain.PropertyType
- type Many2one
- func (f *Many2one) DBType() *libdomain.DBType
- func (f *Many2one) GetInverseProperty() string
- func (f *Many2one) GetName() string
- func (f *Many2one) GetPosition() int
- func (f *Many2one) GetPrimaryKey() bool
- func (f *Many2one) GetReference() libdomain.TableInterface
- func (f *Many2one) GetReferenceName() string
- func (f *Many2one) GetRequired() bool
- func (f *Many2one) GoNil() string
- func (f *Many2one) GoType() string
- func (f *Many2one) GoTypeWithPath() string
- func (f *Many2one) GraphqlSchemaType() string
- func (f *Many2one) GraphqlType() string
- func (f *Many2one) IsNested() bool
- func (r *Many2one) IsRepeated() bool
- func (f *Many2one) IsStored() bool
- func (r *Many2one) IsTranslatable() bool
- func (f *Many2one) JSONType() string
- func (f *Many2one) NameWithoutID() string
- func (f *Many2one) ProtoType() string
- func (f *Many2one) ProtoTypeOptional() string
- func (f *Many2one) SetPosition(position int)
- func (f *Many2one) SetReference(d libdomain.TableInterface)
- func (f *Many2one) Snake() string
- func (f *Many2one) Title() string
- func (f *Many2one) TitleWithoutID() string
- func (f *Many2one) Type() libdomain.PropertyType
- type One2many
- func (f *One2many) DBType() *libdomain.DBType
- func (f *One2many) GetInverseProperty() string
- func (f *One2many) GetName() string
- func (f *One2many) GetPosition() int
- func (f *One2many) GetPrimaryKey() bool
- func (f *One2many) GetReference() libdomain.TableInterface
- func (f *One2many) GetReferenceName() string
- func (f *One2many) GetRequired() bool
- func (f *One2many) GoNil() string
- func (f *One2many) GoType() string
- func (f *One2many) GraphqlSchemaType() string
- func (f *One2many) GraphqlType() string
- func (f *One2many) IsNested() bool
- func (r *One2many) IsRepeated() bool
- func (f *One2many) IsStored() bool
- func (r *One2many) IsTranslatable() bool
- func (f *One2many) JSONType() string
- func (f *One2many) NameWithoutID() string
- func (f *One2many) ProtoType() string
- func (f *One2many) ProtoTypeOptional() string
- func (f *One2many) SetPosition(position int)
- func (f *One2many) SetReference(d libdomain.TableInterface)
- func (f *One2many) Snake() string
- func (f *One2many) Title() string
- func (f *One2many) TitleWithoutID() string
- func (f *One2many) Type() libdomain.PropertyType
- type Text
- func (f *Text) DBType() *libdomain.DBType
- func (f *Text) GetInverseProperty() string
- func (f *Text) GetName() string
- func (f *Text) GetPosition() int
- func (f *Text) GetPrimaryKey() bool
- func (f *Text) GetReference() libdomain.TableInterface
- func (f *Text) GetReferenceName() string
- func (f *Text) GetRequired() bool
- func (f *Text) GoNil() string
- func (f *Text) GoType() string
- func (f *Text) GraphqlSchemaType() string
- func (f *Text) GraphqlType() string
- func (f *Text) IsNested() bool
- func (r *Text) IsRepeated() bool
- func (f *Text) IsStored() bool
- func (r *Text) IsTranslatable() bool
- func (f *Text) JSONType() string
- func (f *Text) NameWithoutID() string
- func (f *Text) ProtoType() string
- func (f *Text) ProtoTypeOptional() string
- func (f *Text) SetPosition(position int)
- func (f *Text) SetReference(libdomain.TableInterface)
- func (f *Text) Snake() string
- func (f *Text) Title() string
- func (f *Text) TitleWithoutID() string
- func (f *Text) Type() libdomain.PropertyType
Constants ¶
const BinaryPropertyType = libdomain.PropertyType("BinaryType")
JSONPropertyType contains the field type for JSON
const BooleanPropertyType = libdomain.PropertyType("BooleanType")
BooleanPropertyType contains the field type for Boolean
const DatePropertyType = libdomain.PropertyType("DateType")
DatePropertyType contains the field type for Date
const DatetimePropertyType = libdomain.PropertyType("DatetimeType")
DatetimePropertyType contains the field type for Datetime
const FloatPropertyType = libdomain.PropertyType("FloatType")
FloatPropertyType contains the field type for Float
const IDPropertyType = libdomain.PropertyType("IDType")
IDPropertyType contains the field type for ID
const IntegerPropertyType = libdomain.PropertyType("IntegerType")
IntegerPropertyType contains the field type for Interger
const JSONPropertyType = libdomain.PropertyType("JSONType")
JSONPropertyType contains the field type for JSON
const Many2manyPropertyType = libdomain.PropertyType("Many2manyType")
Many2manyPropertyType contains the field type for Many2many
const Many2onePropertyType = libdomain.PropertyType("Many2oneType")
Many2onePropertyType contains the field type for Many2one
const One2manyPropertyType = libdomain.PropertyType("One2manyType")
One2manyPropertyType contains the field type for One2many
const TextPropertyType = libdomain.PropertyType("TextType")
TextPropertyType contains the field type for Text
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binary ¶
type Binary struct { Name string String string Required bool Unique bool PrimaryKey bool Store bool TitleName string DBName string Position int }
JSON is the field type you can use in definition to declare a JSON field.
func (*Binary) GetInverseProperty ¶
GetInverseProperty return the inverse field, if applicable.
func (*Binary) GetPosition ¶
func (*Binary) GetPrimaryKey ¶
GetPrimaryKey return if this field is a primary key or not.
func (*Binary) GetReference ¶
func (f *Binary) GetReference() libdomain.TableInterface
GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.
func (*Binary) GetReferenceName ¶
GetReference return the name of referenced model, if this field is linked to another model.
func (*Binary) GetRequired ¶
GetRequired return if this field is required or not.
func (*Binary) GraphqlSchemaType ¶
Type return the type of the field.
func (*Binary) GraphqlType ¶
Type return the type of the field.
func (*Binary) IsRepeated ¶
func (*Binary) IsTranslatable ¶
func (*Binary) NameWithoutID ¶
Title return the title of the field.
func (*Binary) ProtoTypeOptional ¶
ProtoType return the protobuf type for this field.
func (*Binary) SetPosition ¶
func (*Binary) SetReference ¶
func (f *Binary) SetReference(libdomain.TableInterface)
SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.
func (*Binary) Snake ¶
Snake return the name of the field, in snake_case. This is essentially used for database.
func (*Binary) TitleWithoutID ¶
Title return the title of the field.
func (*Binary) Type ¶
func (f *Binary) Type() libdomain.PropertyType
Type return the type of the field.
type Boolean ¶
type Boolean struct { Name string String string Required bool Unique bool PrimaryKey bool Store bool TitleName string DBName string Position int }
Boolean is the field type you can use in definition to declare a Boolean field.
func (*Boolean) GetInverseProperty ¶
GetInverseProperty return the inverse field, if applicable.
func (*Boolean) GetPosition ¶
func (*Boolean) GetPrimaryKey ¶
GetPrimaryKey return if this field is a primary key or not.
func (*Boolean) GetReference ¶
func (f *Boolean) GetReference() libdomain.TableInterface
GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.
func (*Boolean) GetReferenceName ¶
GetReference return the name of referenced model, if this field is linked to another model.
func (*Boolean) GetRequired ¶
GetRequired return if this field is required or not.
func (*Boolean) GraphqlSchemaType ¶
Type return the type of the field.
func (*Boolean) GraphqlType ¶
Type return the type of the field.
func (*Boolean) IsRepeated ¶
func (*Boolean) IsTranslatable ¶
func (*Boolean) NameWithoutID ¶
Title return the title of the field.
func (*Boolean) ProtoTypeOptional ¶
ProtoType return the protobuf type for this field.
func (*Boolean) SetPosition ¶
func (*Boolean) SetReference ¶
func (f *Boolean) SetReference(libdomain.TableInterface)
SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.
func (*Boolean) Snake ¶
Snake return the name of the field, in snake_case. This is essentially used for database.
func (*Boolean) TitleWithoutID ¶
Title return the title of the field.
func (*Boolean) Type ¶
func (f *Boolean) Type() libdomain.PropertyType
Type return the type of the field.
type Date ¶
type Date struct { Name string String string Required bool Unique bool PrimaryKey bool Store bool TitleName string DBName string Position int }
Date is the field type you can use in definition to declare a Date field.
func (*Date) GetInverseProperty ¶
GetInverseProperty return the inverse field, if applicable.
func (*Date) GetPosition ¶
func (*Date) GetPrimaryKey ¶
GetPrimaryKey return if this field is a primary key or not.
func (*Date) GetReference ¶
func (f *Date) GetReference() libdomain.TableInterface
GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.
func (*Date) GetReferenceName ¶
GetReference return the name of referenced model, if this field is linked to another model.
func (*Date) GetRequired ¶
GetRequired return if this field is required or not.
func (*Date) GraphqlSchemaType ¶
Type return the type of the field.
func (*Date) IsRepeated ¶
func (*Date) IsTranslatable ¶
func (*Date) NameWithoutID ¶
Title return the title of the field.
func (*Date) ProtoTypeOptional ¶
ProtoType return the protobuf type for this field.
func (*Date) SetPosition ¶
func (*Date) SetReference ¶
func (f *Date) SetReference(libdomain.TableInterface)
SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.
func (*Date) Snake ¶
Snake return the name of the field, in snake_case. This is essentially used for database.
func (*Date) TitleWithoutID ¶
Title return the title of the field.
type Datetime ¶
type Datetime struct { Name string String string Required bool Unique bool PrimaryKey bool Store bool TitleName string DBName string Position int }
Datetime is the field type you can use in definition to declare a Datetime field.
func (*Datetime) GetInverseProperty ¶
GetInverseProperty return the inverse field, if applicable.
func (*Datetime) GetPosition ¶
func (*Datetime) GetPrimaryKey ¶
GetPrimaryKey return if this field is a primary key or not.
func (*Datetime) GetReference ¶
func (f *Datetime) GetReference() libdomain.TableInterface
GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.
func (*Datetime) GetReferenceName ¶
GetReference return the name of referenced model, if this field is linked to another model.
func (*Datetime) GetRequired ¶
GetRequired return if this field is required or not.
func (*Datetime) GraphqlSchemaType ¶
Type return the type of the field.
func (*Datetime) GraphqlType ¶
Type return the type of the field.
func (*Datetime) IsRepeated ¶
func (*Datetime) IsTranslatable ¶
func (*Datetime) NameWithoutID ¶
Title return the title of the field.
func (*Datetime) ProtoTypeOptional ¶
ProtoType return the protobuf type for this field.
func (*Datetime) SetPosition ¶
func (*Datetime) SetReference ¶
func (f *Datetime) SetReference(libdomain.TableInterface)
SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.
func (*Datetime) Snake ¶
Snake return the name of the field, in snake_case. This is essentially used for database.
func (*Datetime) TitleWithoutID ¶
Title return the title of the field.
func (*Datetime) Type ¶
func (f *Datetime) Type() libdomain.PropertyType
Type return the type of the field.
type Float ¶
type Float struct { Name string String string Required bool Unique bool PrimaryKey bool Store bool TitleName string DBName string Position int }
Float is the field type you can use in definition to declare a Float field.
func (*Float) GetInverseProperty ¶
GetInverseProperty return the inverse field, if applicable.
func (*Float) GetPosition ¶
func (*Float) GetPrimaryKey ¶
GetPrimaryKey return if this field is a primary key or not.
func (*Float) GetReference ¶
func (f *Float) GetReference() libdomain.TableInterface
GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.
func (*Float) GetReferenceName ¶
GetReference return the name of referenced model, if this field is linked to another model.
func (*Float) GetRequired ¶
GetRequired return if this field is required or not.
func (*Float) GraphqlSchemaType ¶
Type return the type of the field.
func (*Float) IsRepeated ¶
func (*Float) IsTranslatable ¶
func (*Float) NameWithoutID ¶
Title return the title of the field.
func (*Float) ProtoTypeOptional ¶
ProtoType return the protobuf type for this field.
func (*Float) SetPosition ¶
func (*Float) SetReference ¶
func (f *Float) SetReference(libdomain.TableInterface)
SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.
func (*Float) Snake ¶
Snake return the name of the field, in snake_case. This is essentially used for database.
func (*Float) TitleWithoutID ¶
Title return the title of the field.
func (*Float) Type ¶
func (f *Float) Type() libdomain.PropertyType
Type return the type of the field.
type ID ¶
type ID struct { Name string String string Required bool Unique bool PrimaryKey bool Store bool TitleName string DBName string Position int }
ID is the field type you can use in definition to declare an ID field.
func (*ID) GetInverseProperty ¶
GetInverseProperty return the inverse field, if applicable.
func (*ID) GetPosition ¶
func (*ID) GetPrimaryKey ¶
GetPrimaryKey return if this field is a primary key or not.
func (*ID) GetReference ¶
func (f *ID) GetReference() libdomain.TableInterface
GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.
func (*ID) GetReferenceName ¶
GetReference return the name of referenced model, if this field is linked to another model.
func (*ID) GetRequired ¶
GetRequired return if this field is required or not.
func (*ID) GraphqlSchemaType ¶
Type return the type of the field.
func (*ID) IsRepeated ¶
func (*ID) IsTranslatable ¶
func (*ID) ProtoTypeOptional ¶
ProtoType return the protobuf type for this field.
func (*ID) SetPosition ¶
func (*ID) SetReference ¶
func (f *ID) SetReference(libdomain.TableInterface)
SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.
func (*ID) Snake ¶
Snake return the name of the field, in snake_case. This is essentially used for database.
func (*ID) TitleWithoutID ¶
Title return the title of the field.
type Integer ¶
type Integer struct { Name string String string Required bool Unique bool PrimaryKey bool Store bool TitleName string DBName string Position int }
Integer is the field type you can use in definition to declare an Integer field.
func (*Integer) GetInverseProperty ¶
GetInverseProperty return the inverse field, if applicable.
func (*Integer) GetPosition ¶
func (*Integer) GetPrimaryKey ¶
GetPrimaryKey return if this field is a primary key or not.
func (*Integer) GetReference ¶
func (f *Integer) GetReference() libdomain.TableInterface
GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.
func (*Integer) GetReferenceName ¶
GetReference return the name of referenced model, if this field is linked to another model.
func (*Integer) GetRequired ¶
GetRequired return if this field is required or not.
func (*Integer) GraphqlSchemaType ¶
Type return the type of the field.
func (*Integer) GraphqlType ¶
Type return the type of the field.
func (*Integer) IsRepeated ¶
func (*Integer) IsTranslatable ¶
func (*Integer) NameWithoutID ¶
Title return the title of the field.
func (*Integer) ProtoTypeOptional ¶
ProtoType return the protobuf type for this field.
func (*Integer) SetPosition ¶
func (*Integer) SetReference ¶
func (f *Integer) SetReference(libdomain.TableInterface)
SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.
func (*Integer) Snake ¶
Snake return the name of the field, in snake_case. This is essentially used for database.
func (*Integer) TitleWithoutID ¶
Title return the title of the field.
func (*Integer) Type ¶
func (f *Integer) Type() libdomain.PropertyType
Type return the type of the field.
type JSON ¶
type JSON struct { Name string String string Required bool Unique bool PrimaryKey bool Store bool TitleName string DBName string Position int }
JSON is the field type you can use in definition to declare a JSON field.
func (*JSON) GetInverseProperty ¶
GetInverseProperty return the inverse field, if applicable.
func (*JSON) GetPosition ¶
func (*JSON) GetPrimaryKey ¶
GetPrimaryKey return if this field is a primary key or not.
func (*JSON) GetReference ¶
func (f *JSON) GetReference() libdomain.TableInterface
GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.
func (*JSON) GetReferenceName ¶
GetReference return the name of referenced model, if this field is linked to another model.
func (*JSON) GetRequired ¶
GetRequired return if this field is required or not.
func (*JSON) GraphqlSchemaType ¶
Type return the type of the field.
func (*JSON) IsRepeated ¶
func (*JSON) IsTranslatable ¶
func (*JSON) NameWithoutID ¶
Title return the title of the field.
func (*JSON) ProtoTypeOptional ¶
ProtoType return the protobuf type for this field.
func (*JSON) SetPosition ¶
func (*JSON) SetReference ¶
func (f *JSON) SetReference(libdomain.TableInterface)
SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.
func (*JSON) Snake ¶
Snake return the name of the field, in snake_case. This is essentially used for database.
func (*JSON) TitleWithoutID ¶
Title return the title of the field.
type Many2many ¶
type Many2many struct { Name string String string Reference string ReferenceDefinition libdomain.TableInterface Relation string InverseProperty string TargetProperty string OnDelete libdomain.OnDeleteValue // ValueObject *libdomain.ValueObjectDefinition TitleName string DBName string Position int }
Many2many is the field type you can use in definition to declare a Many2many field.
func (*Many2many) GetInverseProperty ¶
GetInverseProperty return the inverse field, if applicable.
func (*Many2many) GetPosition ¶
func (*Many2many) GetPrimaryKey ¶
GetPrimaryKey return if this field is a primary key or not.
func (*Many2many) GetReference ¶
func (f *Many2many) GetReference() libdomain.TableInterface
GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.
func (*Many2many) GetReferenceName ¶
GetReference return the name of referenced model, if this field is linked to another model.
func (*Many2many) GetRequired ¶
GetRequired return if this field is required or not.
func (*Many2many) GraphqlSchemaType ¶
Type return the type of the field.
func (*Many2many) GraphqlType ¶
Type return the type of the field.
func (*Many2many) InverseSnake ¶
GetInverseProperty return the inverse field, if applicable.
func (*Many2many) InverseTitle ¶
GetInverseProperty return the inverse field, if applicable.
func (*Many2many) IsRepeated ¶
func (*Many2many) IsTranslatable ¶
func (*Many2many) NameWithoutID ¶
Title return the title of the field.
func (*Many2many) ProtoTypeOptional ¶
ProtoType return the protobuf type for this field.
func (*Many2many) RelationTitle ¶
GetInverseProperty return the inverse field, if applicable.
func (*Many2many) SetPosition ¶
func (*Many2many) SetReference ¶
func (f *Many2many) SetReference(d libdomain.TableInterface)
SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.
func (*Many2many) Snake ¶
Snake return the name of the field, in snake_case. This is essentially used for database.
func (*Many2many) TargetTitle ¶
GetInverseProperty return the inverse field, if applicable.
func (*Many2many) TitleWithoutID ¶
Title return the title of the field.
func (*Many2many) Type ¶
func (f *Many2many) Type() libdomain.PropertyType
Type return the type of the field.
type Many2one ¶
type Many2one struct { Name string String string Reference string ReferenceDefinition libdomain.TableInterface ReferencePrefix string ReferencePath string Required bool Unique bool OnDelete libdomain.OnDeleteValue PrimaryKey bool Store bool TitleName string DBName string Position int }
Many2one is the field type you can use in definition to declare a Many2one field.
func (*Many2one) GetInverseProperty ¶
GetInverseProperty return the inverse field, if applicable.
func (*Many2one) GetPosition ¶
func (*Many2one) GetPrimaryKey ¶
GetPrimaryKey return if this field is a primary key or not.
func (*Many2one) GetReference ¶
func (f *Many2one) GetReference() libdomain.TableInterface
GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.
func (*Many2one) GetReferenceName ¶
GetReference return the name of referenced model, if this field is linked to another model.
func (*Many2one) GetRequired ¶
GetRequired return if this field is required or not.
func (*Many2one) GoTypeWithPath ¶
Type return the type of the field.
func (*Many2one) GraphqlSchemaType ¶
Type return the type of the field.
func (*Many2one) GraphqlType ¶
Type return the type of the field.
func (*Many2one) IsRepeated ¶
func (*Many2one) IsTranslatable ¶
func (*Many2one) NameWithoutID ¶
Title return the title of the field.
func (*Many2one) ProtoTypeOptional ¶
ProtoType return the protobuf type for this field.
func (*Many2one) SetPosition ¶
func (*Many2one) SetReference ¶
func (f *Many2one) SetReference(d libdomain.TableInterface)
SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.
func (*Many2one) Snake ¶
Snake return the name of the field, in snake_case. This is essentially used for database.
func (*Many2one) TitleWithoutID ¶
Title return the title of the field.
func (*Many2one) Type ¶
func (f *Many2one) Type() libdomain.PropertyType
Type return the type of the field.
type One2many ¶
type One2many struct { Name string String string Child string ChildDefinition libdomain.TableInterface InverseProperty string TitleName string DBName string Position int }
One2many is the field type you can use in definition to declare a One2many field.
func (*One2many) GetInverseProperty ¶
GetInverseProperty return the inverse field, if applicable.
func (*One2many) GetPosition ¶
func (*One2many) GetPrimaryKey ¶
GetPrimaryKey return if this field is a primary key or not.
func (*One2many) GetReference ¶
func (f *One2many) GetReference() libdomain.TableInterface
GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.
func (*One2many) GetReferenceName ¶
GetReference return the name of referenced model, if this field is linked to another model.
func (*One2many) GetRequired ¶
GetRequired return if this field is required or not.
func (*One2many) GraphqlSchemaType ¶
Type return the type of the field.
func (*One2many) GraphqlType ¶
Type return the type of the field.
func (*One2many) IsRepeated ¶
func (*One2many) IsTranslatable ¶
func (*One2many) NameWithoutID ¶
Title return the title of the field.
func (*One2many) ProtoTypeOptional ¶
ProtoType return the protobuf type for this field.
func (*One2many) SetPosition ¶
func (*One2many) SetReference ¶
func (f *One2many) SetReference(d libdomain.TableInterface)
SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.
func (*One2many) Snake ¶
Snake return the name of the field, in snake_case. This is essentially used for database.
func (*One2many) TitleWithoutID ¶
Title return the title of the field.
func (*One2many) Type ¶
func (f *One2many) Type() libdomain.PropertyType
Type return the type of the field.
type Text ¶
type Text struct { Name string String string Required bool Translatable bool Unique bool PrimaryKey bool Store bool TitleName string DBName string Position int }
Text is the field type you can use in definition to declare a Text field.
func (*Text) GetInverseProperty ¶
GetInverseProperty return the inverse field, if applicable.
func (*Text) GetPosition ¶
func (*Text) GetPrimaryKey ¶
GetPrimaryKey return if this field is a primary key or not.
func (*Text) GetReference ¶
func (f *Text) GetReference() libdomain.TableInterface
GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.
func (*Text) GetReferenceName ¶
GetReference return the name of referenced model, if this field is linked to another model.
func (*Text) GetRequired ¶
GetRequired return if this field is required or not.
func (*Text) GraphqlSchemaType ¶
Type return the type of the field.
func (*Text) IsRepeated ¶
func (*Text) IsTranslatable ¶
func (*Text) NameWithoutID ¶
Title return the title of the field.
func (*Text) ProtoTypeOptional ¶
ProtoType return the protobuf type for this field.
func (*Text) SetPosition ¶
func (*Text) SetReference ¶
func (f *Text) SetReference(libdomain.TableInterface)
SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.
func (*Text) Snake ¶
Snake return the name of the field, in snake_case. This is essentially used for database.
func (*Text) TitleWithoutID ¶
Title return the title of the field.