package
Version:
v0.0.0-...-1303b49
Opens a new window with list of versions in this module.
Published: May 4, 2018
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type BaseModel struct {
ID uint `gorm:"column:ID;primary_key"`
CreatedAt time.Time `gorm:"column:CreatedAt"`
UpdatedAt time.Time `gorm:"column:UpdatedAt"`
DeletedAt *time.Time `gorm:"column:DeletedAt;index"`
}
type Follow struct {
BaseModel
FollowBy int `gorm:"column:FollowBy"`
FollowTo int `gorm:"column:FollowTo"`
}
type Like struct {
BaseModel
PostID int `gorm:"column:PostID"`
LikeBy int `gorm:"column:LikeBy"`
}
type Post struct {
BaseModel
Title string `gorm:"column:Title"`
Content string `gorm:"column:Content"`
CreatedBy int `gorm:"column:CreatedBy"`
}
type ProfileView struct {
BaseModel
ViewBy int `gorm:"column:ViewBy"`
ViewTo int `gorm:"column:ViewTo"`
}
type User struct {
BaseModel
Username string `gorm:"column:Username"`
Password string `gorm:"column:Password"`
Email string `gorm:"column:Email"`
Bio string `gorm:"column:Bio"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.