prvi
This commit is contained in:
36
EveryThing/Models/IdentityApplicationUser.cs
Normal file
36
EveryThing/Models/IdentityApplicationUser.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using EveryThing.Models.CodeTable;
|
||||
|
||||
namespace EveryThing.Models
|
||||
{
|
||||
public class IdentityApplicationUser : IdentityUser<int>
|
||||
{
|
||||
[Required]
|
||||
[ForeignKey("Company")]
|
||||
public int IdCompanyFk { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Surname { get; set; }
|
||||
|
||||
[Required]
|
||||
public DateTime DateCreated { get; set; }
|
||||
|
||||
[Required]
|
||||
public DateTime DateValidUntil { get; set; }
|
||||
|
||||
[Required]
|
||||
public bool Active { get; set; }
|
||||
|
||||
//ForeignKey
|
||||
public CodeTableCompany Company { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user