37 lines
876 B
C#
37 lines
876 B
C#
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; }
|
|
}
|
|
}
|