ENEI2019-Public/api/Models/User.cs

27 lines
670 B
C#
Raw Normal View History

2018-12-12 15:17:08 +00:00
using System;
using Microsoft.AspNetCore.Identity;
using System.Collections.Generic;
2019-03-09 18:47:20 +00:00
using System.ComponentModel.DataAnnotations.Schema;
2018-12-12 15:17:08 +00:00
namespace api.Models
{
public class User: IdentityUser<int>
{
2019-02-24 02:16:08 +00:00
public string QRcode{get;set;}
2018-12-12 15:17:08 +00:00
public ICollection<UserRole> UserRoles{get;set;}
2019-02-24 02:16:08 +00:00
public ICollection<Log> logsFebrada{get;set;}
public ICollection<Log> logsFestarola{get;set;}
2018-12-12 15:17:08 +00:00
public ICollection<Photo> Photos {get;set;}
2019-02-24 02:16:08 +00:00
public int drinks{get;set;}
public int food{get;set;}
2019-03-07 18:27:14 +00:00
2019-03-09 18:47:20 +00:00
[ForeignKey("teamID")]
2019-03-07 18:27:14 +00:00
public Team team{get;set;}
2019-03-14 18:10:59 +00:00
2019-03-16 16:32:37 +00:00
public string cromos {get;set;}
2018-12-12 15:17:08 +00:00
}
}