atakanozbancom/Models/classes/admin.cs

37 lines
1008 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
2026-02-13 23:40:52 +01:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2026-02-13 23:40:52 +01:00
namespace atakanozbancom.Models.classes
{
public class admin
{
[Key]
public int id { get; set; }
public string username { get; set; }
public string password { get; set; }
[Column("two_factor_enabled")]
public bool two_factor_enabled { get; set; }
[Column("two_factor_secret")]
[StringLength(512)]
public string two_factor_secret { get; set; }
[Column("login_failed_count")]
public int login_failed_count { get; set; }
[Column("login_lock_until")]
public DateTime? login_lock_until { get; set; }
[Column("totp_failed_count")]
public int totp_failed_count { get; set; }
[Column("totp_lock_until")]
public DateTime? totp_lock_until { get; set; }
2026-02-13 23:40:52 +01:00
public List<myprojects> MyProjects { get; set; }
}
}