Initial commit

This commit is contained in:
2020-04-12 20:52:03 -04:00
parent e750d2848a
commit 01e7627293
249 changed files with 9733 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
// Decompiled with JetBrains decompiler
// Type: PartSource.Data.Models.ApiClient
// Assembly: PartSource.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Data.dll
namespace PartSource.Data.Models
{
public class ApiClient
{
[System.ComponentModel.DataAnnotations.Key]
public string Key { get; set; }
public string AppName { get; set; }
public string Secret { get; set; }
public bool Active { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace PartSource.Data.Models
{
public class BaseVehicle
{
public int BaseVehicleId { get; set; }
public int Year { get; set; }
public int MakeId { get; set; }
public int ModelId { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace PartSource.Data.Models
{
public class DcfMapping
{
public string LineCode { get; set; }
public string WhiCode { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace PartSource.Data.Models
{
public class Engine
{
public int EngineConfigId { get; set; }
public string Description { get; set; }
public int BaseVehicleId { get; set; }
public int SubmodelId { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace PartSource.Data.Models
{
public partial class Fitment
{
public string PartNumber { get; set; }
public string LineCode { get; set; }
public int? BaseVehicleId { get; set; }
public int? EngineConfigId { get; set; }
public string Position { get; set; }
}
}

View File

@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace PartSource.Data.Models
{
//[Table("ImportDataOld")]
public class ImportData
{
public string Title { get; set; }
public string BodyHtml { get; set; }
public string Vendor { get; set; }
public bool? IsVariant { get; set; }
public string VariantTitle { get; set; }
[Key]
public string VariantSku { get; set; }
public decimal Price { get; set; }
public decimal CompareAt { get; set; }
public long? ShopifyId { get; set; }
public string ImageSrc { get; set; }
public string ImageAltText { get; set; }
public bool? IsFitment { get; set; }
public string LineCode { get; set; }
public string PartNumber { get; set; }
}
}

View File

@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace PartSource.Data.Models
{
using System;
using System.Collections.Generic;
public partial class ImportMetric
{
public int Id { get; set; }
public Nullable<int> TotalItems { get; set; }
public Nullable<int> ChangedItems { get; set; }
public System.DateTime ImportDate { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
// Decompiled with JetBrains decompiler
// Type: PartSource.Data.Models.Manufacturer
// Assembly: PartSource.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Data.dll
namespace PartSource.Data.Models
{
public class Manufacturer
{
public int Id { get; set; }
public string Name { get; set; }
public string LineCode { get; set; }
}
}

View File

@@ -0,0 +1,27 @@
// Decompiled with JetBrains decompiler
// Type: PartSource.Data.Models.Part
// Assembly: PartSource.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Data.dll
namespace PartSource.Data.Models
{
public class Part
{
public int Id { get; set; }
public int ManufacturerId { get; set; }
public long? ShopifyId { get; set; }
public int Sku { get; set; }
public string PartNumber { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public Manufacturer Manufacturer { get; set; }
}
}

View File

@@ -0,0 +1,108 @@
// Decompiled with JetBrains decompiler
// Type: PartSource.Data.Models.PartData
// Assembly: PartSource.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Data.dll
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PartSource.Data.Models
{
[Table("PartData")]
public class PartData
{
[Key]
[StringLength(255)]
public string SKU { get; set; }
[StringLength(255)]
public string LOB_NM { get; set; }
[StringLength(255)]
public string CATEGORY_NM { get; set; }
[StringLength(255)]
public string SUBCATEGORY_NM { get; set; }
[StringLength(255)]
public string FINELINE_NM { get; set; }
[StringLength(255)]
public string PRODUCT_ENGLISH_LONG_DESC { get; set; }
[StringLength(255)]
public string BRAND_NM { get; set; }
[StringLength(255)]
public string CORPORATE_STATUS_NM { get; set; }
[StringLength(255)]
public string FAMILY_FEATURES_BENEFITS1 { get; set; }
[StringLength(255)]
public string FAMILY_FEATURES_BENEFITS2 { get; set; }
[StringLength(255)]
public string FAMILY_FEATURES_BENEFITS3 { get; set; }
[StringLength(255)]
public string FAMILY_FEATURES_BENEFITS4 { get; set; }
[StringLength(255)]
public string FAMILY_FEATURES_BENEFITS5 { get; set; }
[StringLength(255)]
public string FAMILY_FEATURES_BENEFITS6 { get; set; }
[StringLength(255)]
public string FAMILY_FEATURES_BENEFITS7 { get; set; }
[StringLength(255)]
public string FAMILY_FEATURES_BENEFITS8 { get; set; }
[StringLength(255)]
public string FAMILY_FEATURES_BENEFITS9 { get; set; }
[StringLength(255)]
public string FAMILY_FEATURES_BENEFITS10 { get; set; }
[StringLength(255)]
public string FAMILY_FEATURES_BENEFITS11 { get; set; }
[StringLength(255)]
public string FAMILY_FEATURES_BENEFITS12 { get; set; }
[StringLength(255)]
public string FAMILY_FEATURES_BENEFITS13 { get; set; }
[StringLength(255)]
public string FAMILY_FEATURES_BENEFITS14 { get; set; }
[StringLength(255)]
public string Tested { get; set; }
[Column("Line Code")]
[StringLength(255)]
public string Line_Code { get; set; }
[Column("Part Number")]
[StringLength(255)]
public string Part_Number { get; set; }
[Column("Compare Price", TypeName = "money")]
public Decimal? Compare_Price { get; set; }
[Column("Your Price", TypeName = "money")]
public Decimal? Your_Price { get; set; }
public string Title { get; set; }
public string VariantTitle { get; set; }
public byte? IsFitment { get; set; }
public byte? Published { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace PartSource.Data.Models
{
public class PartImage
{
public int Id { get; set; }
public string Sku { get; set; }
public string Url { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
namespace PartSource.Data.Models
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
public partial class PartPrice
{
[Key]
public string SKU { get; set; }
public Nullable<decimal> Compare_Price { get; set; }
public Nullable<decimal> Your_Price { get; set; }
public string Active { get; set; }
// public virtual PartData PartData { get; set; }
}
}

View File

@@ -0,0 +1,26 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PartSource.Data.Models
{
public class PartsAvailability
{
[Column(Order = 0)]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public int Store { get; set; }
[Column(Order = 1)]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public int SKU { get; set; }
[Column("Line Code")]
[StringLength(50)]
public string Line_Code { get; set; }
[Column("Part Number")]
[StringLength(50)]
public string Part_Number { get; set; }
public int? QTY { get; set; }
}
}

View File

@@ -0,0 +1,33 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PartSource.Data.Models
{
public class PostalCode
{
[Key]
[MaxLength(3)]
public string ForwardSortationArea { get; set; }
[Required]
public string City { get; set; }
[Required]
public string Province { get; set; }
//[Required]
//public DbGeography Location { get; set; }
[NotMapped]
public string LocalDeliveryUnit { get; set; }
[NotMapped]
public string Code
{
get
{
return string.Format("{0} {1}", (object) this.ForwardSortationArea, (object) this.LocalDeliveryUnit);
}
}
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace PartSource.Data.Models
{
public class ProductBackup
{
[Key]
public long ShopifyId { get; set; }
public string ProductJson { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
// Decompiled with JetBrains decompiler
// Type: PartSource.Data.Models.Store
// Assembly: PartSource.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Data.dll
using System.ComponentModel.DataAnnotations;
namespace PartSource.Data.Models
{
public class Store
{
[Key]
public int StoreNumber { get; set; }
//public DbGeography Location { get; set; }
}
}

View File

@@ -0,0 +1,31 @@
// Decompiled with JetBrains decompiler
// Type: PartSource.Data.Models.StorePart
// Assembly: PartSource.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Data.dll
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PartSource.Data.Models
{
public class StorePart
{
[Key]
[Column(Order = 0)]
public int StoreNumber { get; set; }
[Key]
[Column(Order = 1)]
public int PartId { get; set; }
public int Quantity { get; set; }
public Decimal Price { get; set; }
public Store Store { get; set; }
public Part Part { get; set; }
}
}

View File

@@ -0,0 +1,26 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace PartSource.Data.Models
{
[Table("Submodel", Schema = "Vehicle")]
public class Submodel
{
public int SubmodelId { get; set; }
public string Name { get; set; }
[JsonIgnore]
public int Year { get; set; }
[JsonIgnore]
public int MakeId { get; set; }
[JsonIgnore]
public int ModelId { get; set; }
}
}

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace PartSource.Data.Models
{
public class VehicleData
{
public int? MakeId { get; set; }
public string MakeName { get; set; }
public int? ModelId { get; set; }
public string ModelName { get; set; }
public int? EngineConfigId { get; set; }
public string EngineDescription { get; set; }
public int? BaseVehicleId { get; set; }
public int? Year { get; set; }
public int? SubmodelId { get; set; }
public string SubmodelName { get; set; }
[Key]
public int VehicleToEngineConfigId { get; set; }
[NotMapped]
public string Position { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace PartSource.Data.Models
{
public class VehicleMake
{
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public int Id { get; set; }
public string Name { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace PartSource.Data.Models
{
public class VehicleModel
{
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public int Id { get; set; }
public string Name { get; set; }
public int VehicleMakeId { get; set; }
}
}