model

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT 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 {
	DefaultModel
	CreatedBy string `json:"createdBy" gorm:"column:created_by"`
	UpdatedBy string `json:"updatedBy" gorm:"column:updated_by"`
}

type DefaultModel

type DefaultModel struct {
	Model
	Deleted bool `json:"-"`
}

type Model

type Model struct {
	ID        string    `json:"id" gorm:"primary_key;unique_index;size:64"`
	CreatedAt time.Time `json:"createdAt" gorm:"column:created_at"`
	UpdatedAt time.Time `json:"updatedAt" gorm:"column:updated_at"`
}

func (*Model) DefaultCreated

func (m *Model) DefaultCreated()

func (*Model) DefaultUpdated

func (m *Model) DefaultUpdated()

Jump to

Keyboard shortcuts

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