/
fr1n1ss
/
PasswordManager
Обзор
Документация
Войти
/
fr1n1ss
/
PasswordManager
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
PasswordManagerAPI/Entities/Account.cs
26 строк
881 B
Dmitry Kiselyov
Add secure notes and favorites feature
03 май 2025, 11:55
03 май 2025, 11:55
4375747
Код
Авторство
О чём код?
using Microsoft.EntityFrameworkCore; namespace PasswordManagerAPI.Entities { [Index(nameof(UserID), nameof(ServiceName), nameof(Login), IsUnique = true)] [PrimaryKey(nameof(ID))] public class Account { public Account() { } public Account(string login, string serviceName, string password, string? description) { Login = login; ServiceName = serviceName; EncryptedPassword = password; Description = description; } public int ID { get; set; } public int UserID { get; set; } public string ServiceName { get; set; } public string Login { get; set; } public string EncryptedPassword { get; set; } public string URL { get; set; } public string? Description { get; set; } public DateTime CreationDate { get; set; } } }