Two things:
* User views its devices, from a /manage index link * Yavsc.Server resurection
This commit is contained in:
15
Yavsc.Server/Models/Musical/Instrument.cs
Normal file
15
Yavsc.Server/Models/Musical/Instrument.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Yavsc.Models.Musical
|
||||
{
|
||||
public class Instrument
|
||||
{
|
||||
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id {get; set; }
|
||||
|
||||
[MaxLength(255),Required]
|
||||
public string Name { get ; set; }
|
||||
}
|
||||
}
|
20
Yavsc.Server/Models/Musical/InstrumentRating.cs
Normal file
20
Yavsc.Server/Models/Musical/InstrumentRating.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Models.Musical
|
||||
{
|
||||
public class InstrumentRating
|
||||
{
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id {get; set; }
|
||||
public Instrument Instrument { get; set; }
|
||||
public int Rate { get; set; }
|
||||
|
||||
public string OwnerId { get; set; }
|
||||
|
||||
[ForeignKey("OwnerId")]
|
||||
public virtual PerformerProfile Profile { get; set; }
|
||||
|
||||
}
|
||||
}
|
22
Yavsc.Server/Models/Musical/MusicalPreference.cs
Normal file
22
Yavsc.Server/Models/Musical/MusicalPreference.cs
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Yavsc.Models.Musical
|
||||
{
|
||||
|
||||
public class MusicalPreference {
|
||||
|
||||
[Key]
|
||||
public string OwnerProfileId
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
|
||||
public int Rate { get; set; }
|
||||
|
||||
[Required]
|
||||
public long TendencyId {get; set; }
|
||||
}
|
||||
|
||||
}
|
21
Yavsc.Server/Models/Musical/MusicalTendency.cs
Normal file
21
Yavsc.Server/Models/Musical/MusicalTendency.cs
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
namespace Yavsc.Models.Musical {
|
||||
|
||||
|
||||
|
||||
public class MusicalTendency {
|
||||
|
||||
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id {get; set; }
|
||||
|
||||
[MaxLength(255),Required]
|
||||
public string Name { get ; set; }
|
||||
|
||||
}
|
||||
|
||||
}
|
15
Yavsc.Server/Models/Musical/Profiles/DjPerformerProfile.cs
Normal file
15
Yavsc.Server/Models/Musical/Profiles/DjPerformerProfile.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Models.Musical
|
||||
{
|
||||
public class DjPerformerProfile : SpecializationSettings
|
||||
{
|
||||
public string SoundCloudId { get; set; }
|
||||
|
||||
[InverseProperty("OwnerProfile")]
|
||||
public virtual List<MusicalPreference> SoundColor { get; set; }
|
||||
|
||||
}
|
||||
}
|
20
Yavsc.Server/Models/Musical/Profiles/DjSettings.cs
Normal file
20
Yavsc.Server/Models/Musical/Profiles/DjSettings.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Yavsc.Models.Musical.Profiles
|
||||
{
|
||||
public class DjSettings : ISpecializationSettings
|
||||
{
|
||||
|
||||
public string SoundCloudId { get; set; }
|
||||
|
||||
public virtual List<MusicalPreference> SoundColor { get; set; }
|
||||
|
||||
[Key]
|
||||
public string UserId
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Models.Musical.Profiles
|
||||
{
|
||||
public class FormationPerformerProfile
|
||||
{
|
||||
[InverseProperty("WorkingFor")]
|
||||
public virtual List<CoWorking> CoWorking { get; set; }
|
||||
}
|
||||
}
|
15
Yavsc.Server/Models/Musical/Profiles/GeneralSettings.cs
Normal file
15
Yavsc.Server/Models/Musical/Profiles/GeneralSettings.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Yavsc.Models.Musical.Profiles
|
||||
{
|
||||
public class GeneralSettings : ISpecializationSettings
|
||||
{
|
||||
public virtual List<MusicalPreference> SoundColor { get; set; }
|
||||
[Key]
|
||||
public string UserId
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
}
|
20
Yavsc.Server/Models/Musical/Profiles/Instrumentation.cs
Normal file
20
Yavsc.Server/Models/Musical/Profiles/Instrumentation.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Models.Musical.Profiles
|
||||
{
|
||||
public class Instrumentation : ISpecializationSettings
|
||||
{
|
||||
public string UserId
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[ForeignKeyAttribute("UserId")]
|
||||
public virtual PerformerProfile User { get; set; }
|
||||
public long InstrumentId { get; set; }
|
||||
|
||||
[ForeignKeyAttribute("InstrumentId")]
|
||||
public virtual Instrument Tool { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Models.Musical
|
||||
{
|
||||
public class MusicianPerformerProfile : PerformerProfile
|
||||
{
|
||||
[InverseProperty("Profile")]
|
||||
public virtual List<InstrumentRating> Instrumentation {
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
}
|
12
Yavsc.Server/Models/Musical/Profiles/StarPerformerProfile.cs
Normal file
12
Yavsc.Server/Models/Musical/Profiles/StarPerformerProfile.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Models.Musical.Profiles
|
||||
{
|
||||
public class StarPerformerProfile : PerformerProfile
|
||||
{
|
||||
[InverseProperty("OwnerProfile")]
|
||||
public virtual List<MusicalPreference> SoundColor { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user