mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-28 03:04:07 +00:00
Restructure extras
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Spacebar.Models.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; }
|
||||
}
|
||||
Reference in New Issue
Block a user