Add project files.
This commit is contained in:
40
ConstructorApp.EntityLayer/Entities/Testimonial.cs
Normal file
40
ConstructorApp.EntityLayer/Entities/Testimonial.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user