15 lines
298 B
Go
15 lines
298 B
Go
package pgModels
|
|
|
|
import (
|
|
"git.dragse.it/anthrove/otter-space-sdk/pkg/models"
|
|
)
|
|
|
|
// Post model
|
|
type Post struct {
|
|
BaseModel
|
|
Rating models.Rating `gorm:"type:rating"`
|
|
Body string `gorm:"type:text"`
|
|
UserID int `gorm:"index"`
|
|
Status string `gorm:"type:post_status"`
|
|
}
|