41 lines
845 B
C#
41 lines
845 B
C#
using System.ComponentModel.DataAnnotations;
|
||
|
||
namespace ConstructorApp.EntityLayer.Entities
|
||
{
|
||
public enum TestimonialStatus
|
||
{
|
||
Pending, // Onay Bekliyor
|
||
Confirmed, // Gösterimde
|
||
Cancelled // Gösterimden Kaldırıldı
|
||
}
|
||
public class Testimonial
|
||
{
|
||
[Key]
|
||
public int TestimonialID { get; set; }
|
||
|
||
|
||
[StringLength(50)]
|
||
[Required]
|
||
public string? Name { get; set; }
|
||
|
||
|
||
[StringLength(100)]
|
||
[Required]
|
||
public string? Title { get; set; }
|
||
|
||
|
||
[StringLength(500)]
|
||
[Required]
|
||
public string? Comment { get; set; }
|
||
|
||
|
||
[StringLength(50)]
|
||
[Required]
|
||
public string? ImageUrl { get; set; }
|
||
|
||
|
||
[Required]
|
||
public TestimonialStatus Status { get; set; } // Durum enum'u kullanılıyor
|
||
}
|
||
}
|