Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { gorm.Model UserID uint `gorm:"not null;"` User User PostID uint `gorm:"not null;"` Post Post Content string `gorm:"not null;type:varchar(127);"` ImageUrl *string `gorm:"type:varchar(255);"` }
func NewComment ¶
type Group ¶
type Post ¶
type Post struct { gorm.Model UserID uint `gorm:"not null;"` User User Title string `gorm:"not null;type:varchar(64);"` Description string `gorm:"not null;type:varchar(255);"` Location string `gorm:"not null;type:varchar(64);"` CourtNumber string `gorm:"not null;type:varchar(8);"` Limit *uint GroupID *uint Group Group BeginsAt *time.Time EndsAt *time.Time Tags []Tag `gorm:"many2many:post_tags;"` CommentCount uint PresentCount uint Status string `gorm:"type:enum('OPEN', 'CANCELED', 'CLOSED');"` }
type Stamp ¶
type Tag ¶
type User ¶
type User struct { gorm.Model UserName string `gorm:"not null;type:varchar(32);"` Name string `gorm:"not null;type:varchar(32);"` Email string `gorm:"not null;type:varchar(254);"` Password string `gorm:"not null;type:varchar(127);"` Bio string `gorm:"not null;type:varchar(255);"` Generation int `gorm:"not null;default:0;"` IconURL *string `gorm:"type:varchar(255);"` PostCount uint `gorm:"not null;default:0;"` }
Click to show internal directories.
Click to hide internal directories.