aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/JwtTokenEntity.cs
blob: 6e5ae9a8032ae1c8c09f6f6bd47620f4783a6296 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace TimelineApp.Entities
{
    [Table("jwt_token")]
    public class JwtTokenEntity
    {
        [Column("id"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }

        [Required, Column("key")]
#pragma warning disable CA1819 // Properties should not return arrays
        public byte[] Key { get; set; } = default!;
#pragma warning restore CA1819 // Properties should not return arrays
    }
}