addfunfacts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-05-19 17:56:56 +02:00
parent 8cd1e10cd7
commit 634488c2d8
107 changed files with 5270 additions and 289 deletions

View File

@ -0,0 +1,16 @@

namespace HanyadikHetVan.Data.Entities
{
public class FunFact
{
public int Id { get; set; }
public string Fact { get; set; }
public double FunFactor { get; set; }
public int WeeklyTimeSpanId { get; set; }
public virtual WeeklyTimeSpan WeeklyTimeSpan { get; set; }
}
}

View File

@ -1,19 +0,0 @@
using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace HanyadikHetVan.Data.Entities
{
public class Purse
{
public int Id { get; set; }
public virtual IdentityUser User { get; set; }
public String UserId { get; set; }
public int Balance { get; set; }
}
}

View File

@ -0,0 +1,11 @@
using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
namespace HanyadikHetVan.Data.Entities
{
public class User : IdentityUser
{
public virtual ICollection<WeeklyTimeSpan> WeeklyTimeSpans { get; set; }
}
}

View File

@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Identity;
using System;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
@ -14,8 +13,10 @@ namespace HanyadikHetVan.Data.Entities
public virtual ICollection<Pause> Pauses { get; set; }
public virtual IdentityUser Owner { get; set; }
public virtual ICollection<FunFact> FunFacts { get; set; }
public String OwnerId { get; set; }
public virtual User User { get; set; }
public string UserId { get; set; }
}
}