Paypal paiment model

This commit is contained in:
2017-05-07 22:12:04 +02:00
parent 5bbe8bdfbd
commit a8437733ae
9 changed files with 2305 additions and 14 deletions

View File

@ -1,6 +1,8 @@
using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Migrations;
using Yavsc.Models;
namespace Yavsc.Migrations
@ -307,6 +309,8 @@ namespace Yavsc.Migrations
b.Property<int>("Count");
b.Property<string>("Currency");
b.Property<string>("Description")
.IsRequired()
.HasAnnotation("MaxLength", 512);
@ -537,6 +541,8 @@ namespace Yavsc.Migrations
b.Property<DateTime>("DateModified");
b.Property<string>("Description");
b.Property<DateTime?>("EventDate");
b.Property<long?>("LocationId");
@ -574,6 +580,8 @@ namespace Yavsc.Migrations
b.Property<DateTime>("DateModified");
b.Property<string>("Description");
b.Property<DateTime>("EventDate");
b.Property<long?>("LocationId");
@ -843,6 +851,29 @@ namespace Yavsc.Migrations
b.HasKey("UserId");
});
modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b =>
{
b.Property<string>("PaypalPayerId");
b.Property<DateTime>("DateCreated");
b.Property<DateTime>("DateModified");
b.Property<string>("ExecutorId")
.IsRequired();
b.Property<string>("PaypalPaymentId")
.IsRequired();
b.Property<string>("UserCreated");
b.Property<string>("UserModified");
b.Property<string>("orderReference");
b.HasKey("PaypalPayerId");
});
modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b =>
{
b.Property<long>("Id")
@ -1050,6 +1081,8 @@ namespace Yavsc.Migrations
b.Property<DateTime>("DateModified");
b.Property<string>("Description");
b.Property<DateTime>("EventDate");
b.Property<long?>("LocationId");
@ -1200,6 +1233,13 @@ namespace Yavsc.Migrations
.HasForeignKey("ApplicationUserId");
});
modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b =>
{
b.HasOne("Yavsc.Models.Workflow.PerformerProfile")
.WithMany()
.HasForeignKey("UserId");
});
modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b =>
{
b.HasOne("Yavsc.Models.Workflow.Activity")
@ -1325,6 +1365,13 @@ namespace Yavsc.Migrations
.HasForeignKey("UserId");
});
modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b =>
{
b.HasOne("Yavsc.Models.ApplicationUser")
.WithMany()
.HasForeignKey("ExecutorId");
});
modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b =>
{
b.HasOne("Yavsc.Models.ApplicationUser")