wip social
This commit is contained in:
parent
b94c30ed5b
commit
efc1a80e5b
9 changed files with 245 additions and 50 deletions
|
|
@ -12,6 +12,7 @@ using Yavsc.Models.OAuth;
|
|||
using Yavsc.Models.Workflow;
|
||||
using Yavsc.Models.Identity;
|
||||
using Yavsc.Models.Market;
|
||||
using Yavsc.Model;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
|
|
@ -182,5 +183,7 @@ namespace Yavsc.Models
|
|||
public DbSet<EstimateTemplate> EstimateTemplates { get; set; }
|
||||
|
||||
public DbSet<Contact> Contacts { get; set; }
|
||||
|
||||
public DbSet<ClientProviderInfo> ClientProviderInfo { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
10
Yavsc/Model/Chat/Connection.cs
Normal file
10
Yavsc/Model/Chat/Connection.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
namespace Yavsc.Model.Chat
|
||||
{
|
||||
public class Connection
|
||||
{
|
||||
public string ConnectionID { get; set; }
|
||||
public string UserAgent { get; set; }
|
||||
public bool Connected { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@ using Microsoft.AspNet.Identity.EntityFramework;
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Identity;
|
||||
using Yavsc.Model.Chat;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
|
|
@ -53,6 +54,9 @@ namespace Yavsc.Models
|
|||
[InverseProperty("DeviceOwner")]
|
||||
public virtual List<GoogleCloudMobileDeclaration> Devices { get; set; }
|
||||
|
||||
public ICollection<Connection> Connections { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// User's circles
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -1,14 +1,18 @@
|
|||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
namespace Yavsc.Model
|
||||
{
|
||||
public class ClientProviderInfo
|
||||
{
|
||||
public string UserName { get; set; }
|
||||
public string Avatar { get; set; }
|
||||
[Key]
|
||||
public string UserId { get; set; }
|
||||
public int Rate { get; set; }
|
||||
public string EMail { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public Location BillingAddress { get; set; }
|
||||
public string ChatHubConnectionId { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue