orm

package
v1.0.68 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	ID uint `gorm:"primaryKey"`
	Timestamps
}

type Relationship

type Relationship struct {
}

func (*Relationship) HasMany

func (r *Relationship) HasMany(dest, id any, foreignKey string) *gorm.DB

func (*Relationship) HasOne

func (r *Relationship) HasOne(dest, id any, foreignKey string) *gorm.DB

type SoftDeletes

type SoftDeletes struct {
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}

type Timestamps

type Timestamps struct {
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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