profiles dj, musicien, formation
This commit is contained in:
parent
f30d493f6e
commit
e143052211
35 changed files with 5364 additions and 18 deletions
15
Yavsc/Models/Booking/Instrument.cs
Normal file
15
Yavsc/Models/Booking/Instrument.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Yavsc.Models.Booking
|
||||
{
|
||||
public class Instrument
|
||||
{
|
||||
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id {get; set; }
|
||||
|
||||
[MaxLength(255),Required]
|
||||
public string Name { get ; set; }
|
||||
}
|
||||
}
|
||||
20
Yavsc/Models/Booking/InstrumentRating.cs
Normal file
20
Yavsc/Models/Booking/InstrumentRating.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Models.Booking
|
||||
{
|
||||
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; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +1,15 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Models.Booking {
|
||||
|
||||
public class MusicalPreference : MusicalTendency {
|
||||
|
||||
public long OwnerId { get; set; }
|
||||
public string OwnerProfileId { get; set; }
|
||||
|
||||
[ForeignKey("OwnerProfileId")]
|
||||
public virtual PerformerProfile OwnerProfile { get; set; }
|
||||
public int Rate { get; set; }
|
||||
|
||||
}
|
||||
|
|
|
|||
15
Yavsc/Models/Booking/Profiles/DjPerformerProfile.cs
Normal file
15
Yavsc/Models/Booking/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.Booking
|
||||
{
|
||||
public class DjPerformerProfile : PerformerProfile
|
||||
{
|
||||
public string SoundCloudId { get; set; }
|
||||
|
||||
[InverseProperty("OwnerProfile")]
|
||||
public virtual List<MusicalPreference> SoundColor { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
12
Yavsc/Models/Booking/Profiles/FormationPerformerProfile.cs
Normal file
12
Yavsc/Models/Booking/Profiles/FormationPerformerProfile.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Models.Booking.Profiles
|
||||
{
|
||||
public class FormationPerformerProfile
|
||||
{
|
||||
[InverseProperty("WorkingFor")]
|
||||
public virtual List<CoWorking> CoWorking { get; set; }
|
||||
}
|
||||
}
|
||||
14
Yavsc/Models/Booking/Profiles/MusicianPerformerProfile.cs
Normal file
14
Yavsc/Models/Booking/Profiles/MusicianPerformerProfile.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Models.Booking
|
||||
{
|
||||
public class MusicianPerformerProfile : PerformerProfile
|
||||
{
|
||||
[InverseProperty("Profile")]
|
||||
public virtual List<InstrumentRating> Instrumentation {
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue