Files
2025-05-01 15:18:30 +03:00

41 lines
845 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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
}
}