gormmodel

package
v0.0.0-...-c8675c7 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeletedAt

type DeletedAt[T synchro.TimeZone] sql.Null[synchro.Time[T]]

func (*DeletedAt[T]) Scan

func (n *DeletedAt[T]) Scan(value interface{}) error

func (DeletedAt[T]) Value

func (n DeletedAt[T]) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type UUIDModel

type UUIDModel struct {
	ID        uuid.UUID `gorm:"primarykey;type:uuid;default:gen_random_uuid()"`
	CreatedAt synchro.Time[tz.AsiaTokyo]
	UpdatedAt synchro.Time[tz.AsiaTokyo]
	DeletedAt gorm.DeletedAt `gorm:"index"`
}

func (*UUIDModel) CreateID

func (u *UUIDModel) CreateID() error

Jump to

Keyboard shortcuts

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