entities

package
v0.0.0-...-1a2b2a5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	ID            uuid.UUID    `json:"id,omitempty"`
	Wbatn         string       `json:"wbatn,omitempty"`
	AttributeName string       `json:"attribute_name,omitempty"`
	Label         string       `json:"label,omitempty"`
	DataType      string       `json:"data_type,omitempty"`
	CreatedAt     sql.NullTime `json:"created_at,omitempty"`
	UpdatedAt     sql.NullTime `json:"updated_at,omitempty"`

	IsRequired bool `json:"is_required,omitempty" db:"-"`
	Ordinal    int  `json:"ordinal,omitempty" db:"-"`
}

type Entity

type Entity struct {
	ID           uuid.UUID `json:"id,omitempty"`
	ResourceName string    `json:"resource_name,omitempty"`
	Name         string    `json:"name,omitempty"`
	Description  string    `json:"description,omitempty"`
	Notes        string    `json:"notes,omitempty"`
	CreatedAt    time.Time `json:"created_at,omitempty"`
	UpdatedAt    time.Time `json:"updated_at,omitempty"`

	Attributes []*EntityAttribute `json:"attributes,omitempty"`
	Children   []*EntityReference `json:"children,omitempty"`
	Parent     *EntityReference   `json:"parent,omitempty"`
	Type       *TypeReference     `json:"type,omitempty"`
}

type EntityAttribute

type EntityAttribute struct {
	Name  string `json:"name,omitempty"`
	Type  string `json:"type,omitempty"`
	Value string `json:"value,omitempty"`
}

type EntityReference

type EntityReference struct {
	EntityID     uuid.UUID `json:"entity_id,omitempty"`
	EntityName   string    `json:"entity_name,omitempty"`
	ResourceName string    `json:"resource_name,omitempty"`
	TypeName     string    `json:"type_name,omitempty"`
}

type EntityType

type EntityType struct {
	ID              uuid.UUID `json:"id,omitempty"`
	Wbtn            string    `json:"wbtn,omitempty"`
	TypeName        string    `json:"type_name,omitempty"`
	TypeDescription string    `json:"type_description,omitempty"`
	CreatedAt       time.Time `json:"created_at,omitempty"`
	UpdatedAt       time.Time `json:"updated_at,omitempty"`

	Attributes []*Attribute   `json:"attributes,omitempty"`
	Parent     *TypeReference `json:"parent,omitempty"`
}

type TypeReference

type TypeReference struct {
	TypeID   uuid.UUID `json:"type_id,omitempty"`
	TypeName string    `json:"type_name,omitempty"`
	Wbtn     string    `json:"wbtn,omitempty"`
}

Jump to

Keyboard shortcuts

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