2018-09-16 17:09:40 +00:00
|
|
|
package models
|
2018-07-18 13:17:56 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/jinzhu/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Album struct {
|
|
|
|
gorm.Model
|
2018-09-19 09:16:18 +00:00
|
|
|
AlbumSlug string
|
|
|
|
AlbumName string
|
2018-09-27 06:59:53 +00:00
|
|
|
AlbumDescription string `gorm:"type:text;"`
|
|
|
|
AlbumNotes string `gorm:"type:text;"`
|
2018-09-19 09:16:18 +00:00
|
|
|
AlbumPhoto *Photo
|
|
|
|
AlbumPhotoID uint
|
|
|
|
Photos []Photo `gorm:"many2many:album_photos;"`
|
2018-07-18 13:17:56 +00:00
|
|
|
}
|