tkInfraDbModel

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 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 ActivityRecord

type ActivityRecord struct {
	ID                uint64 `gorm:"primaryKey"`
	RecordLevel       string `gorm:"not null"`
	RecordCode        string `gorm:"not null"`
	AffectedResources []ActivityRecordAffectedResource
	RecordDetails     *string
	OperatorSri       *string
	OperatorIpAddress *string
	CreatedAt         time.Time `gorm:"not null"`
}

func NewActivityRecord

func NewActivityRecord(
	recordId uint64,
	recordLevel, recordCode string,
	affectedResources []ActivityRecordAffectedResource,
	recordDetails, operatorSri, operatorIpAddress *string,
) ActivityRecord

func (ActivityRecord) TableName

func (ActivityRecord) TableName() string

func (ActivityRecord) ToEntity

func (model ActivityRecord) ToEntity() (recordEntity tkEntity.ActivityRecord, err error)

type ActivityRecordAffectedResource

type ActivityRecordAffectedResource struct {
	ID                       uint64 `gorm:"primaryKey"`
	SystemResourceIdentifier string `gorm:"not null"`
	ActivityRecordID         uint64 `gorm:"not null"`
}

func (ActivityRecordAffectedResource) TableName

Jump to

Keyboard shortcuts

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