Changed project structure
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package models
|
||||
|
||||
type MediaAttachment struct {
|
||||
ID string `json:"id" gorm:"primaryKey"`
|
||||
Type string `json:"type"`
|
||||
Url string `json:"url"`
|
||||
PreviewUrl string `json:"preview_url"`
|
||||
RemoteUrl string `json:"remote_url"`
|
||||
Approved bool `json:"-"`
|
||||
PostID string // Foreign key to Post
|
||||
}
|
||||
Reference in New Issue
Block a user