Files
marechai/Marechai.Database/Models/BaseScan.cs

63 lines
2.5 KiB
C#
Raw Normal View History

/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
2025-11-14 05:08:14 +00:00
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
2025-11-14 16:31:35 +00:00
using Marechai.Data;
2025-11-13 04:05:35 +00:00
namespace Marechai.Database.Models;
public abstract class BaseScan : BaseModel<Guid>
{
2025-11-13 04:05:35 +00:00
public string Author { get; set; }
[DisplayName("Color space")]
public ColorSpace? ColorSpace { get; set; }
[DisplayName("User comments")]
public string Comments { get; set; }
[DisplayName("Date and time of digitizing")]
public DateTime? CreationDate { get; set; }
[DisplayName("Exif version")]
public string ExifVersion { get; set; }
[DisplayName("Horizontal resolution")]
public double? HorizontalResolution { get; set; }
[DisplayName("Resolution unit")]
public ResolutionUnit? ResolutionUnit { get; set; }
[DisplayName("Scanner manufacturer")]
public string ScannerManufacturer { get; set; }
[DisplayName("Scanner model")]
public string ScannerModel { get; set; }
[DisplayName("Software used")]
public string SoftwareUsed { get; set; }
[Timestamp]
public DateTime UploadDate { get; set; }
[DisplayName("Vertical resolution")]
public double? VerticalResolution { get; set; }
public string OriginalExtension { get; set; }
2025-11-13 04:05:35 +00:00
public virtual ApplicationUser User { get; set; }
2025-11-13 04:05:35 +00:00
public string UserId { get; set; }
}