57 lines
1.3 KiB
C#
57 lines
1.3 KiB
C#
// <copyright file="UserGroup.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 group entity.
|
|
/// </summary>
|
|
[TableMapping("userGroups")]
|
|
public class UserGroup
|
|
{
|
|
/// <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>
|
|
/// Whether this group is an internal group.
|
|
/// </summary>
|
|
[ColumnMapping("internal")]
|
|
public bool Internal { get; set; }
|
|
|
|
/// <summary>
|
|
/// Owner user id.
|
|
/// </summary>
|
|
[ColumnMapping("ownerUserId")]
|
|
public Guid OwnerUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Group title.
|
|
/// </summary>
|
|
[ColumnMapping("title")]
|
|
public string Title { get; set; }
|
|
|
|
/// <summary>
|
|
/// Group description.
|
|
/// </summary>
|
|
[ColumnMapping("description")]
|
|
public string Description { get; set; }
|
|
}
|