This commit is contained in:
2025-08-08 12:31:51 +03:00
parent 3301e17f22
commit 4796beac49
29 changed files with 2369 additions and 77 deletions

37
Models/Kullanici.cs Normal file
View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DugunSalonu.Models
{
internal class Kullanici
{
[Key]
public int Id { get; set; }
[MaxLength(50), MinLength(5)]
[Required]
public required string KullaniciAdi { get; set; }
[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]
public required string Parola { get; set; }
[MaxLength(50)]
public string? Eposta { get; set; }
[MaxLength(10), MinLength(10)]
public string? CepTel { get; set; }
public bool Aktif { get; set; }
public bool Admin { get; set; }
}
}