using System;
using System.ComponentModel.DataAnnotations;

namespace Skcks.Study.AbpProject.Products;

public class CreateUpdateProductDto
{
    public Guid CategoryId { get; set; }
    
    [Required]
    [StringLength(ProductConsts.MaxNameLength)]
    public string Name { get; set; }
    
    public float Price { get; set; }
    public bool IsFreeCargo { get; set; }
    public DateTime ReleaseDate { get; set; }
    public ProductStockState StockState { get; set; }
}