entity

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auditing

type Auditing struct {
	// CreatedAt records when the entity was created.
	CreatedAt time.Time `gorm:"autoCreateTime" json:"created_at"`

	// CreatedBy records who created the entity.
	CreatedBy string `gorm:"type:varchar(255)" json:"created_by,omitempty"`

	// UpdatedAt records when the entity was last updated.
	UpdatedAt time.Time `gorm:"autoUpdateTime" json:"updated_at"`

	// UpdatedBy records who last updated the entity.
	UpdatedBy string `gorm:"type:varchar(255)" json:"updated_by,omitempty"`

	// DeletedAt records when the entity was soft deleted.
	DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at,omitempty"`
}

Auditing provides common auditing fields for entities.

Jump to

Keyboard shortcuts

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