16 lines
343 B
Go
16 lines
343 B
Go
package pgModels
|
|
|
|
type PostReference struct {
|
|
PostID string `gorm:"primaryKey"`
|
|
SourceID string `gorm:"primaryKey"`
|
|
URL string `gorm:"not null;unique"`
|
|
SourcePostID string
|
|
FullFileURL string
|
|
PreviewFileURL string
|
|
SampleFileURL string
|
|
}
|
|
|
|
func (PostReference) TableName() string {
|
|
return "PostReference"
|
|
}
|