using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Hc900Crawler.Core.Domain.Entities;

[Table("ff_operator_action")]
public class FfOperatorAction
{
    [Column("id")]
    public long Id { get; set; }

    [Column("column_id")]
    public int ColumnId { get; set; }

    [MaxLength(50)]
    [Column("stream_key")]
    public string? StreamKey { get; set; }

    [MaxLength(50)]
    [Column("action_type")]
    public string ActionType { get; set; } = "";

    [Column("sp_value")]
    public double? SpValue { get; set; }

    [MaxLength(255)]
    [Column("node_id")]
    public string? NodeId { get; set; }

    [MaxLength(50)]
    [Column("result")]
    public string Result { get; set; } = "";

    [Column("writeguard_reason")]
    public string? WriteguardReason { get; set; }

    [MaxLength(100)]
    [Column("operator_name")]
    public string? OperatorName { get; set; }

    [Column("created_at")]
    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}
