model

package
v0.0.0-...-05a5cfa Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: GPL-3.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 Record

type Record struct {
	ID        int64     `gorm:"primaryKey"`
	UserID    int64     `gorm:"column:user_id;unique;not null" validate:"required"`
	Body      string    `gorm:"column:body;not null" validate:"required,min=1,max=128"`
	DateAdded time.Time `gorm:"column:date_added;type:timestamp(0) without time zone;not null;autoCreateTime"`
}

func (*Record) Validate

func (r *Record) Validate() error

Jump to

Keyboard shortcuts

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