46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
|
// <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; }
|
||
|
}
|