Organizasyon Tablosu Eklendi.

This commit is contained in:
2025-08-15 00:08:26 +03:00
parent 663784484e
commit 3805d07494
6 changed files with 542 additions and 8 deletions

68
Models/Organizasyon.cs Normal file
View File

@@ -0,0 +1,68 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.Design.Serialization;
using System.Data.SqlTypes;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DugunSalonu.Models
{
public class Organizasyon
{
[Key]
public int id { get; set; }
[Required]
public required DateOnly rezervasyontarihi { get; set; } = DateOnly.FromDateTime(DateTime.Now);
[Required]
public required DateOnly sozlesmetarihi { get; set; }
[Required]
public required DateOnly organizasyontarihi { get; set; }
[Required]
public required string organizasyonsaati { get; set; } //referans tablosundan alınacak.
[Required]
[MaxLength(50)]
public required string adi { get; set; }
[Required]
[MaxLength(50)]
public required string soyadi { get; set; }
public string adisoyadi { get { return $"{adi} {soyadi}"; } }
[Required]
[MaxLength(10)]
[MinLength(10)]
public required int ceptel { get; set; }
[MaxLength(10)]
[MinLength(10)]
public int? ceptel2 { get; set; }
[Required]
[MaxLength(30)]
public required string gelinyore { get; set; }
[Required]
[MaxLength(30)]
public required string damatyore { get; set; }
[Required]
[MaxLength(400)]
public required string aciklama { get; set; }
[Required]
[MaxLength(10)]
public required string organizasyondurum { get; set; } // referans tablosundan alınacak.
[Required]
public required Decimal fiyat { get; set; }
[Required]
public required DateTime kts { get; set; } = DateTime.UtcNow;
[Required]
public required int kk { get; set; }
public byte[]? sozlesme { get; set; }
public int? iptal { get; set; }
public int? iptalkk { get; set; }
public DateTime? iptalkts { get; set; }
[MaxLength(200)]
public string? iptalaciklama { get; set; }
}
}