entity

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 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 Base

type Base struct {
	ID        *resource.Identifier `gorm:"type:uuid;primary_key;"` // `gorm:"primary_key;type:uuid;default:uuid_generate_v4()"`
	CreatedAt *time.Time           `json:"created_at"`
	UpdatedAt *time.Time           `json:"update_at"`
	DeletedAt *time.Time           `sql:"index" json:"deleted_at"`
}

Base contains common columns for all tables. CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public; ?

Jump to

Keyboard shortcuts

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