package entity

import "time"

type ArticleNulisAI struct {
	ID              uint      `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
	NulisAiId       int       `json:"nulis_ai_id" gorm:"type:int4"`
	ArticleId       int       `json:"article_id" gorm:"type:int4"`
	Title           string    `json:"title" gorm:"type:varchar"`
	Description     string    `json:"description" gorm:"type:varchar"`
	HtmlDescription string    `json:"html_description" gorm:"type:varchar"`
	CategoryId      int       `json:"category_id" gorm:"type:int4"`
	CreatorId       uint      `json:"creator_id" gorm:"type:int4"`
	Tags            string    `json:"tags" gorm:"type:varchar"`
	ThumbnailPath   string    `json:"thumbnail_path" gorm:"type:varchar"`
	IsPublish       bool      `json:"is_publish" gorm:"type:bool"`
	PublishedAt     time.Time `json:"published_at" gorm:"type:timestamp"`
	IsActive        bool      `json:"is_active" gorm:"type:bool"`
	CreatedAt       time.Time `json:"created_at" gorm:"default:now()"`
	UpdatedAt       time.Time `json:"updated_at" gorm:"default:now()"`
}
