blob: b73a72330a6ea494f07a05c8b249b0898809370a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace Spacebar.Db.Models;
[Table("backup_codes")]
public partial class BackupCode
{
[Key]
[Column("id", TypeName = "character varying")]
public string Id { get; set; } = null!;
[Column("code", TypeName = "character varying")]
public string Code { get; set; } = null!;
[Column("consumed")]
public bool Consumed { get; set; }
[Column("expired")]
public bool Expired { get; set; }
[Column("user_id", TypeName = "character varying")]
public string? UserId { get; set; }
[ForeignKey("UserId")]
[InverseProperty("BackupCodes")]
public virtual User? User { get; set; }
}
|