model

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audit

type Audit struct {
	CreatedAt time.Time
	CreatedBy string
	UpdatedAt time.Time
	UpdatedBy string
	DeletedAt *time.Time
	DeletedBy string
}

Audit marks a model with lifecycle metadata.

type Company

type Company struct {
	CompanyID string
}

Company marks a model as company-scoped.

type Entity

type Entity struct {
	Company
	Audit
}

Entity is the common managed model trait.

type Version added in v0.4.1

type Version struct {
	Version int64
}

Version marks a model with optimistic-locking metadata.

Jump to

Keyboard shortcuts

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