package article_category_details

import (
	entity "narasi-ahli-be/app/database/entity"
	"time"
)

type ArticleCategoryDetails struct {
	ID         uint                      `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
	ArticleId  uint                      `json:"article_id" gorm:"type:int4"`
	CategoryId int                       `json:"category_id" gorm:"type:int4"`
	Category   *entity.ArticleCategories `json:"category" gorm:"foreignKey:CategoryId;references:ID"`
	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()"`
}
