model

package
v0.0.0-...-5589121 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Id        uuid.UUID `gorm:"primary_key;type:uuid"`
	Code      string    `gorm:"column:code"`
	Text      string    `gorm:"column:text"`
	CreatedAt *time.Time
	UpdatedAt *time.Time
	Version   optimisticlock.Version
}

func (*Message) BeforeCreate

func (m *Message) BeforeCreate(tx *gorm.DB) (err error)

Jump to

Keyboard shortcuts

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