model

package
v0.0.0-...-c76da00 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blacklist

type Blacklist struct {
	gorm.Model
	UserIP    string `gorm:"type:varchar(255)"`
	UserAgent string `gorm:"type:varchar(255)"`
}

type Record

type Record struct {
	gorm.Model
	Content    string `gorm:"type:text"`
	Title      string `gorm:"type:varchar(255)"`
	CreateTime int64  `gorm:"type:bigint"`
	ExpireTime int64  `gorm:"type:bigint"`
	UserIP     string `gorm:"type:varchar(255)"`
	UserAgent  string `gorm:"type:varchar(255)"`
	ShortLink  string `gorm:"type:varchar(255),unique"`
	RawLink    string `gorm:"type:varchar(255),unique"`
}

Jump to

Keyboard shortcuts

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