float_value

package
v0.0.0-...-4f702ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntityName = "floatValue"
	TableName  = "float_value"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FloatValue

type FloatValue struct {
	ID         uint    `gorm:"type:bigserial;primaryKey" json:"id"`
	EntityID   uint    `gorm:"type:bigint not null REFERENCES \"entity\"(id);index:idx_float_value,priority:1" json:"entityID"`
	PropertyID uint    `gorm:"type:bigint not null;index:idx_float_value,priority:2" json:"propertyID"`
	Value      float64 `gorm:"type:double precision not null;index" json:"value"`
}

FloatValue ...

func New

func New() *FloatValue

New func is a constructor for the EntityType

func (*FloatValue) TableName

func (e *FloatValue) TableName() string

type Repository

type Repository interface {
	BatchSaveChangesTx(ctx context.Context, entityID uint, values []FloatValue, langID uint, tx *gorm.DB) error
	BatchDeleteTx(ctx context.Context, cond *selection_condition.SelectionCondition, tx *gorm.DB) error
}

Repository encapsulates the logic to access albums from the data source.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL