global

package
v0.0.0-...-2d6547d Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbedJSON

type EmbedJSON struct {
	CreatedAt int64 `json:"created_at" bson:"created_at"`
	UpdatedAt int64 `json:"updated_at" bson:"updated_at"`
	DeletedAt int64 `json:"deleted_at" bson:"deleted_at"`

	CreatedBy string `json:"created_by" bson:"created_by"`
	UpdatedBy string `json:"updated_by" bson:"updated_by"`
	DeletedBy string `json:"deleted_by" bson:"deleted_by"`
}

func (*EmbedJSON) Created

func (d *EmbedJSON) Created(createdBy string)

func (*EmbedJSON) SoftDelete

func (d *EmbedJSON) SoftDelete(deletedBy string)

func (*EmbedJSON) Updated

func (d *EmbedJSON) Updated(updatedBy string)

type Model

type Model struct {
	//uuid_generate_v4
	ID       string         `gorm:"type:uuid;primaryKey;default:gen_random_uuid()" json:"id"`
	Metadata datatypes.JSON `gorm:"type:jsonb" json:"metadata"`
}

func (*Model) Created

func (m *Model) Created(userID string)

func (*Model) SoftDelete

func (m *Model) SoftDelete(userID string)

func (*Model) Updated

func (m *Model) Updated(userID string)

Jump to

Keyboard shortcuts

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