astral-api/Astral.Core/Entities/UserProfile.cs

46 lines
1.1 KiB
C#
Raw Normal View History

2024-12-11 21:36:30 +01:00
// <copyright file="UserProfile.cs" company="alveus.dev">
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
// </copyright>
using Astral.Core.Attributes.EntityAnnotation;
namespace Astral.Core.Entities;
/// <summary>
/// User profile entity.
/// </summary>
[TableMapping("userProfile")]
public class UserProfile
{
/// <summary>
/// User id.
/// </summary>
[ColumnMapping("id")]
[PrimaryKey]
public Guid Id { get; set; }
/// <summary>
/// When the user was created.
/// </summary>
[ColumnMapping("createdAt")]
public DateTime CreatedAt { get; set; }
/// <summary>
/// When the user's entity was last updated.
/// </summary>
[ColumnMapping("updatedAt")]
public DateTime UpdatedAt { get; set; }
/// <summary>
/// Hero image url.
/// </summary>
[ColumnMapping("heroImageUrl")]
public string HeroImageUrl { get; set; }
/// <summary>
/// Thumbnail image url.
/// </summary>
[ColumnMapping("thumbnailImageUrl")]
public string ThumbnailImageUrl { get; set; }
}