/
fr1n1ss
/
PasswordManager
Обзор
Документация
Войти
/
fr1n1ss
/
PasswordManager
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
PasswordManagerAPI/Entities/Note.cs
29 строк
854 B
Dmitry Kiselyov
Add secure notes and favorites feature
03 май 2025, 11:55
03 май 2025, 11:55
4375747
Код
Авторство
О чём код?
using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; namespace PasswordManagerAPI.Entities { [PrimaryKey(nameof(ID))] public class Note { public Note() { } public Note(int userID, string title, string encryptedContent, DateTime createdAt, DateTime updatedAt) { UserID = userID; Title = title; EncryptedContent = encryptedContent; CreatedAt = createdAt; UpdatedAt = updatedAt; } public int ID { get; set; } public int UserID { get; set; } [Required] [MaxLength(100)] public string Title { get; set; } [Required] public string EncryptedContent { get; set; } public DateTime CreatedAt { get; set; } public DateTime UpdatedAt { get; set; } } }