ShopPlatform.Web 1.0.0.0
농산물, 소프트웨어 라이선스와 개발 용역을 직접 판매하는 CodeMaru 직영 쇼핑몰입니다.
로딩중...
검색중...
일치하는것 없음
Product.cs
이 파일의 문서화 페이지로 가기
1namespace ShopPlatform.Models;
2
11public sealed class Product
12{
21 public int Id { get; set; }
30 public string Name { get; set; } = string.Empty;
39 public string Description { get; set; } = string.Empty;
48 public decimal Price { get; set; }
57 public int Stock { get; set; }
66 public bool IsUnlimitedStock { get; set; } = false; // true면 재고 수량 무시
75 public string? ImagePath { get; set; }
84 public string Category { get; set; } = string.Empty;
93 public bool IsActive { get; set; } = true;
102 public bool IsFeatured { get; set; } = false;
111 public int SortOrder { get; set; } = 0;
120 public string DetailHtml { get; set; } = string.Empty; // 상품 상세 텍스트 (HTML)
129 public string VideoUrl { get; set; } = string.Empty; // 유튜브 링크 또는 업로드 동영상 경로
138 public string DetailImagesJson { get; set; } = "[]"; // 상세 이미지 목록 (JSON 배열)
147 public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
148
157 public bool IsAvailable => IsUnlimitedStock || Stock > 0;
158}