hidden activity

This commit is contained in:
2017-02-20 15:53:25 +01:00
parent 5bd7a33b18
commit d7bef28136
25 changed files with 5706 additions and 13 deletions

View File

@ -8,6 +8,7 @@ using Microsoft.Data.Entity;
using System.Web;
using System.Threading;
using Yavsc.Models.Haircut;
using Yavsc.Models.Messaging;
namespace Yavsc.Models
{
@ -45,7 +46,8 @@ namespace Yavsc.Models
builder.Entity<Instrumentation>().HasKey(u=> new { u.InstrumentId, u.UserId});
builder.Entity<CircleAuthorizationToBlogPost>().HasKey(a=> new { a.CircleId, a.BlogPostId});
builder.Entity<CircleMember>().HasKey(c=> new { MemberId = c.MemberId, CircleId = c.CircleId });
builder.Entity<DimissClicked>().HasKey(c=>new { uid = c.UserId, notid = c.NotificationId});
foreach (var et in builder.Model.GetEntityTypes()) {
if (et.ClrType.GetInterface("IBaseTrackedEntity")!=null)
et.FindProperty("DateCreated").IsReadOnlyAfterSave = true;
@ -268,6 +270,10 @@ namespace Yavsc.Models
public DbSet<HairTaint> HairTaint { get; set; }
public DbSet<Color> Color { get; set; }
public DbSet<Notification> Notification { get; set; }
public DbSet<DimissClicked> DimissClicked { get; set; }
}

View File

@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Messaging
{
public class DimissClicked
{
[Required]
public string UserId { get; set; }
[ForeignKey("UserId")]
public virtual ApplicationUser User { get; set; }
[Required]
public long NotificationId { get; set; }
[ForeignKey("NotificationId")]
public virtual Notification Notified { get; set; }
}
}

View File

@ -14,22 +14,22 @@ namespace Yavsc.Models.Messaging
/// <summary>
/// The title.
/// </summary>
[Required, Display(Name = "Title")]
[Required, Display(Name = "Titre")]
public string title { get; set; }
/// <summary>
/// The body.
/// </summary>
[Required, Display(Name = "Title")]
[Required, Display(Name = "Corps")]
public string body { get; set; }
/// <summary>
/// The icon.
/// </summary>
[Display(Name = "Icon")]
[Display(Name = "Icône")]
public string icon { get; set; }
/// <summary>
/// The sound.
/// </summary>
[Display(Name = "Sound")]
[Display(Name = "Son")]
public string sound { get; set; }
/// <summary>
/// The tag.
@ -39,12 +39,12 @@ namespace Yavsc.Models.Messaging
/// <summary>
/// The color.
/// </summary>
[Display(Name = "Color")]
[Display(Name = "Couleur")]
public string color { get; set; }
/// <summary>
/// The click action.
/// </summary>
[Required, Display(Name = "Click action")]
[Required, Display(Name = "Label du click")]
public string click_action { get; set; }
}
}

View File

@ -82,5 +82,8 @@ namespace Yavsc.Models.Workflow
{
get; set;
}
public bool Hidden { get; set; }
}
}