model

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 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 BaseModel

type BaseModel struct {
	CreatedAt time.Time `mapstructure:"created_at" gorm:"column:created_at;type:timestamp;not null"`
	UpdatedAt time.Time `mapstructure:"updated_at" gorm:"column:updated_at;type:timestamp;not null"`
}

BaseModel struct

type BaseModelWithDeleted

type BaseModelWithDeleted struct {
	BaseModel
	DeletedAt soft_delete.DeletedAt `mapstructure:"deleted_at" gorm:"column:deleted_at;type:int(11);default:0"`
}

BaseModelWithDeleted struct

Jump to

Keyboard shortcuts

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