using System;
using System.Collections.Generic;

namespace HoneyBox.Model.Entities;

/// <summary>
/// 广告配置表，存储轮播图和广告信息
/// </summary>
public partial class Advert
{
    /// <summary>
    /// 主键ID
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 广告图片URL
    /// </summary>
    public string ImgUrl { get; set; } = null!;

    /// <summary>
    /// 跳转链接URL
    /// </summary>
    public string? Url { get; set; }

    /// <summary>
    /// 排序值，越小越靠前
    /// </summary>
    public int Sort { get; set; }

    /// <summary>
    /// 广告类型：1-首页轮播
    /// </summary>
    public byte Type { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreatedAt { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime UpdatedAt { get; set; }

    /// <summary>
    /// 跳转类型：0-无跳转
    /// </summary>
    public byte? Ttype { get; set; }

    /// <summary>
    /// 关联优惠券ID
    /// </summary>
    public int? CouponId { get; set; }

    /// <summary>
    /// 关联商品ID
    /// </summary>
    public int? GoodsId { get; set; }
}
