model

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameBlackList = "keepshare_black_list"
View Source
const TableNameBlacklist = "keepshare_blacklist"
View Source
const TableNameSharedLink = "keepshare_shared_link"
View Source
const TableNameUser = "keepshare_user"

Variables

This section is empty.

Functions

This section is empty.

Types

type BlackList

type BlackList struct {
	UserID           string    `gorm:"column:user_id;primaryKey" json:"user_id"`
	OriginalLinkHash string    `gorm:"column:original_link_hash;primaryKey" json:"original_link_hash"`
	OriginalLink     string    `gorm:"column:original_link;not null" json:"original_link"`
	CreatedAt        time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"`
}

BlackList mapped from table <keepshare_black_list>

func (*BlackList) TableName

func (*BlackList) TableName() string

TableName BlackList's table name

type Blacklist

type Blacklist struct {
	UserID           string    `gorm:"column:user_id;primaryKey" json:"user_id"`
	OriginalLinkHash string    `gorm:"column:original_link_hash;primaryKey" json:"original_link_hash"`
	OriginalLink     string    `gorm:"column:original_link;not null" json:"original_link"`
	CreatedAt        time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"`
}

Blacklist mapped from table <keepshare_blacklist>

func (*Blacklist) TableName

func (*Blacklist) TableName() string

TableName Blacklist's table name

type SharedLink struct {
	AutoID             int64     `gorm:"column:auto_id;primaryKey;autoIncrement:true" json:"auto_id"`
	UserID             string    `gorm:"column:user_id;not null" json:"user_id"`
	State              string    `gorm:"column:state;not null" json:"state"`
	Host               string    `gorm:"column:host;not null" json:"host"`
	CreatedBy          string    `gorm:"column:created_by;not null" json:"created_by"`
	CreatedAt          time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"`
	UpdatedAt          time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"`
	Size               int64     `gorm:"column:size;not null" json:"size"`
	Visitor            int32     `gorm:"column:visitor;not null" json:"visitor"`
	Stored             int32     `gorm:"column:stored;not null" json:"stored"`
	Revenue            int64     `gorm:"column:revenue;not null" json:"revenue"`
	Title              string    `gorm:"column:title;not null" json:"title"`
	OriginalLinkHash   string    `gorm:"column:original_link_hash;not null" json:"original_link_hash"`
	HostSharedLinkHash string    `gorm:"column:host_shared_link_hash;not null" json:"host_shared_link_hash"`
	OriginalLink       string    `gorm:"column:original_link;not null" json:"original_link"`
	HostSharedLink     string    `gorm:"column:host_shared_link;not null" json:"host_shared_link"`
	LastVisitedAt      time.Time `gorm:"column:last_visited_at;not null;default:2000-01-01 00:00:00" json:"last_visited_at"`
	LastStoredAt       time.Time `gorm:"column:last_stored_at;not null;default:2000-01-01 00:00:00" json:"last_stored_at"`
}

SharedLink mapped from table <keepshare_shared_link>

func (*SharedLink) TableName

func (*SharedLink) TableName() string

TableName SharedLink's table name

type User

type User struct {
	ID            string    `gorm:"column:id;primaryKey" json:"id"`
	Name          string    `gorm:"column:name;not null" json:"name"`
	Email         string    `gorm:"column:email;not null" json:"email"`
	PasswordHash  string    `gorm:"column:password_hash;not null" json:"password_hash"`
	Channel       string    `gorm:"column:channel;not null" json:"channel"`
	CreatedAt     time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"`
	UpdatedAt     time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"`
	EmailVerified int32     `gorm:"column:email_verified;not null" json:"email_verified"`
}

User mapped from table <keepshare_user>

func (*User) TableName

func (*User) TableName() string

TableName User's table name

Jump to

Keyboard shortcuts

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