Restructure extras

This commit is contained in:
Rory&
2026-01-17 03:22:44 +01:00
parent a32cc57e29
commit 8ea87873de
107 changed files with 404 additions and 266 deletions
@@ -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; }
}