Adding index and max length to user tabel + minor fixes
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.Json.Serialization;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BasicDotnetTemplate.MainProject.Models.Database.SqlServer;
|
||||
|
||||
public class User : Base
|
||||
{
|
||||
[MaxLength(200)]
|
||||
public required string Username { get; set; }
|
||||
[MaxLength(200)]
|
||||
public required string FirstName { get; set; }
|
||||
[MaxLength(200)]
|
||||
public required string LastName { get; set; }
|
||||
[MaxLength(200)]
|
||||
public required string Email { get; set; }
|
||||
public required string PasswordSalt { get; set; }
|
||||
public required string PasswordHash { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user