model

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTypeList    = "EventTypeList"
	ActionTypeList   = "ActionTypeList"
	PropertyTypeList = "PropertyTypeList"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APPModel

type APPModel struct {
	LogPath     string
	LogSaveName string
	LogFileExt  string
	DBPath      string
}

type Action

type Action struct {
	ID         uint              `gorm:"primaryKey"`
	SourceID   string            `gorm:"index"`
	Name       string            `gorm:"index"`
	Properties map[string]string `gorm:"foreignKey:Id"`
	Timestamp  int64             `gorm:"autoCreateTime:milli"`
}

type ActionType

type ActionType struct {
	SourceID         string         `gorm:"primaryKey"`
	Name             string         `gorm:"primaryKey"`
	PropertyTypeList []PropertyType `gorm:"many2many:action_type_property_type;"`
}

type CommonModel

type CommonModel struct {
	RuntimePath string
}

type Event

type Event struct {
	ID         uint              `gorm:"primaryKey"`
	SourceID   string            `gorm:"index"`
	Name       string            `gorm:"index"`
	Properties map[string]string `gorm:"foreignKey:Id"`
	Timestamp  int64             `gorm:"autoCreateTime:milli"`
	UUID       string            `json:"uuid,omitempty"`
}

type EventType

type EventType struct {
	SourceID         string         `gorm:"primaryKey"`
	Name             string         `gorm:"primaryKey"`
	PropertyTypeList []PropertyType `gorm:"many2many:event_type_property_type;"`
}

type GenericType

type GenericType struct {
	SourceID string `gorm:"primaryKey"`
	Name     string `gorm:"primaryKey"`
}

type PropertyType

type PropertyType struct {
	Name string `gorm:"primaryKey"`
}

Jump to

Keyboard shortcuts

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