imdb

package
v0.0.0-...-5416f79 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type DescriptionValue

type DescriptionValue struct {
	ID               int    `gorm:"primary_key" json:"id"`
	TagId            int    `gorm:"not null" json:"tag_id"`
	ResourceObjectId int    `gorm:"not null" json:"resource_object_id"`
	ObjectTagId      int    `gorm:"not null" json:"object_tag_id"`
	Value            string `gorm:"not null;type:varchar(300)" json:"value"`

	ObjectTag ObjectTag `gorm:"ForeignKey:ObjectTagId"`
}

func (DescriptionValue) TableName

func (DescriptionValue) TableName() string

type IntValue

type IntValue struct {
	ID               int `gorm:"primary_key" json:"id"`
	TagId            int `gorm:"not null" json:"tag_id"`
	ResourceObjectId int `gorm:"not null" json:"resource_object_id"`
	ObjectTagId      int `gorm:"not null" json:"object_tag_id"`
	Value            int `gorm:"not null;type:int(6)" json:"value"`
}

func (IntValue) TableName

func (IntValue) TableName() string

type JSONTime

type JSONTime time.Time

func (JSONTime) MarshalJSON

func (t JSONTime) MarshalJSON() ([]byte, error)

type ObjectTag

type ObjectTag struct {
	ID               int      `gorm:"primary_key" json:"id"`
	TagId            int      `gorm:"not null" json:"tag_id"`
	ResourceObjectId int      `gorm:"not null" json:"resource_object_id"`
	ValueId          int      `gorm:"not null" json:"value_id"`
	CreatedBy        string   `json:"created_by"`
	CreatedAt        JSONTime `json:"created_at"`
	UpdatedAt        JSONTime `json:"updated_at"`
}

func (ObjectTag) TableName

func (ObjectTag) TableName() string

func (*ObjectTag) Value

func (self *ObjectTag) Value() (interface{}, error)

type ResourceObject

type ResourceObject struct {
	ID         uint     `gorm:"primary_key" json:"id"`
	ObjectType int      `gorm:"not null" json:"object_type"`
	CreatedAt  JSONTime `json:"created_at"`
	UpdatedAt  JSONTime `json:"updated_at"`
}

func (ResourceObject) TableName

func (ResourceObject) TableName() string

type StrValue

type StrValue struct {
	ID               int    `gorm:"primary_key" json:"id"`
	TagId            int    `gorm:"not null" json:"tag_id"`
	ResourceObjectId int    `gorm:"not null" json:"resource_object_id"`
	ObjectTagId      int    `gorm:"not null" json:"object_tag_id"`
	Value            string `gorm:"not null;type:varchar(30)" json:"value"`

	ObjectTag ObjectTag `gorm:"ForeignKey:ObjectTagId"`
}

func (StrValue) TableName

func (StrValue) TableName() string

type Tag

type Tag struct {
	ID          int      `gorm:"primary_key" json:"id"`
	Name        string   `gorm:"not null;type:varchar(30);unique_index" json:"name"`
	TagTypeId   uint     `gorm:"not null" json:"tag_type_id"`
	Description string   `gorm:"not null" json:"description"`
	Default     int      `gorm:"not null" json:"default"`
	CreatedAt   JSONTime `json:"created_at"`
	UpdatedAt   JSONTime `json:"updated_at"`
	TagType     TagType  `gorm:"ForeignKey:TagTypeId" json:"tag_type"`
}

func (Tag) TableName

func (Tag) TableName() string

type TagType

type TagType struct {
	ID          uint   `gorm:"primary_key" json:"id"`
	TypeName    string `gorm:"not null" json:"type_name"`
	DbTableName string `gorm:"not null" json:"db_table_name"`
}

func (TagType) TableName

func (TagType) TableName() string

type ValueModel

type ValueModel struct {
	ID        int      `gorm:"primary_key" json:"id"`
	TagId     int      `gorm:"not null" json:"tag_id"`
	Value     string   `gorm:"not null;type:varchar(30)" json:"value"`
	CreatedAt JSONTime `json:"created_at"`
	UpdatedAt JSONTime `json:"updated_at"`
}

func (ValueModel) TableName

func (ValueModel) TableName() string

type VmodelValue

type VmodelValue struct {
	ID               int `gorm:"primary_key" json:"id"`
	TagId            int `gorm:"not null" json:"tag_id"`
	ObjectTagId      int `gorm:"not null" json:"object_tag_id"`
	ResourceObjectId int `gorm:"not null" json:"resource_object_id"`
	ValueModelId     int `gorm:"not null" json:"value_model_id"`

	ObjectTag  ObjectTag  `gorm:"ForeignKey:ObjectTagId"`
	ValueModel ValueModel `gorm:"ForeignKey:ValueModelId"`
}

func (VmodelValue) TableName

func (VmodelValue) TableName() string

Jump to

Keyboard shortcuts

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