Documentation
¶
Index ¶
Constants ¶
View Source
const TableNameBlackList = "keepshare_black_list"
View Source
const TableNameBlacklist = "keepshare_blacklist"
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>
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>
type SharedLink ¶
type SharedLink struct {}
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>
Click to show internal directories.
Click to hide internal directories.