package
Version:
v0.0.0-...-724514a
Opens a new window with list of versions in this module.
Published: Dec 21, 2020
License: AGPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
ErrNoRecord = errors.New("models: no matching record found")
ErrInvalidCredentials = errors.New("models: invalid credentials")
ErrDuplicateEmail = errors.New("models: duplicate email")
)
type Bookmark struct {
gorm.Model
Title string
Excerpt string
User User
UserID uint `gorm:"index:unique_url_user,unique"`
Content template.HTML
URL string `gorm:"index:unique_url_user,unique"`
Read int `gorm:"default 0"`
Tags []*Tag `gorm:"many2many:bookmark_tags"`
}
type Tag struct {
gorm.Model
Name string `gorm:"index:unique_tag_user,unique"`
User User
UserID uint `gorm:"index:unique_tag_user,unique"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.