package models

import (
	"github.com/jinzhu/gorm"
	"github.com/qor/accessibility/hyperlink"
)

type Article struct {
	gorm.Model
	Author   User
	AuthorID uint
	Title    string
	Content  string `gorm:"type:text"`
	FromURL  hyperlink.HyperLink
}

package models

import (
	"github.com/jinzhu/gorm"
	"github.com/qor/accessibility/hyperlink"
	"github.com/qor/publish2"
)

type Article struct {
	gorm.Model
	Author   User
	AuthorID uint
	Title    string
	Content  string `gorm:"type:text"`
	FromURL  hyperlink.HyperLink
	publish2.Version
	publish2.Schedule
	publish2.Visible
}

Add publish Version, Schedule, Visible to Blog
Add publish Version, Schedule, Visible to Blog
