package model

import (
	"database/sql"
	"time"
)

type ArticlePreview struct {
	ID          uint64         `db:"id"`
	URL         string         `db:"url"`
	Title       string         `db:"title"`
	Image       string         `db:"image"`
	PreviewText sql.NullString `db:"preview_text"`
	PublishTime time.Time      `db:"publish_time"`
}

type Article struct {
	ID              uint64         `db:"id"`
	URL             string         `db:"url"`
	Title           string         `db:"title"`
	Image           string         `db:"image"`
	Text            string         `db:"text"`
	PublishTime     time.Time      `db:"publish_time"`
	PreviewText     sql.NullString `db:"preview_text"`
	MetaKeywords    sql.NullString `db:"meta_keywords"`
	MetaDescription sql.NullString `db:"meta_desc"`
	Language        LanguageID     `db:"language"`
	IsActive        bool           `db:"is_active"`
}
