chore: cleanup
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
namespace JOBot.Backend.DAL.Context;
|
||||
|
||||
using Models;
|
||||
using JOBot.Backend.DAL.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace JOBot.Backend.DAL.Context;
|
||||
|
||||
public class AppDbContext(DbContextOptions<AppDbContext> options) : DbContext(options)
|
||||
{
|
||||
public DbSet<User> Users { get; set; }
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
{
|
||||
base.OnModelCreating(modelBuilder);
|
||||
|
||||
modelBuilder.Entity<User>()
|
||||
|
||||
@@ -9,12 +9,12 @@ public class User
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
[Key]
|
||||
public required long UserId { get; set; }
|
||||
[MaxLength(255)]
|
||||
public string? Username { get; set; }
|
||||
[Key] public required long UserId { get; set; }
|
||||
|
||||
[MaxLength(255)] public string? Username { get; set; }
|
||||
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
|
||||
|
||||
[MaxLength(255)] public string? AccessToken { get; set; } = null;
|
||||
[MaxLength(255)] public string? RefreshToken { get; set; } = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user