Compare commits
7 Commits
master
...
165addd785
Author | SHA1 | Date | |
---|---|---|---|
165addd785 | |||
52066ccdc2 | |||
29b9520193 | |||
949aedac78 | |||
801dc9dec8 | |||
a179a3fab0 | |||
b12e5c0a0f |
1
.idea/.idea.PF3/.idea/.name
generated
Normal file
1
.idea/.idea.PF3/.idea/.name
generated
Normal file
@@ -0,0 +1 @@
|
||||
PF3
|
10
PF3/DTO/Show/Request/CreateShowDto.cs
Normal file
10
PF3/DTO/Show/Request/CreateShowDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace PF3.DTO.Show.Request;
|
||||
|
||||
public class CreateShowDto
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Place { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? PyrotechnicImplementationPlan { get; set; }
|
||||
public DateTime? Date { get; set; }
|
||||
}
|
6
PF3/DTO/Show/Request/IdShowDto.cs
Normal file
6
PF3/DTO/Show/Request/IdShowDto.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace PF3.DTO.Show.Request;
|
||||
|
||||
public class IdShowDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
11
PF3/DTO/Show/Request/UpdateShowDto.cs
Normal file
11
PF3/DTO/Show/Request/UpdateShowDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace PF3.DTO.Show.Request;
|
||||
|
||||
public class UpdateShowDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public string? Place { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? PyrotechnicImplementationPlan { get; set; }
|
||||
public DateTime? Date { get; set; }
|
||||
}
|
11
PF3/DTO/Show/Response/ReadShowDto.cs
Normal file
11
PF3/DTO/Show/Response/ReadShowDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace PF3.DTO.Show.Response;
|
||||
|
||||
public class ReadShowDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public string? Place { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? PyrotechnicImplementationPlan { get; set; }
|
||||
public DateTime? Date { get; set; }
|
||||
}
|
14
PF3/DTO/Sound/Request/CreateSoundDto.cs
Normal file
14
PF3/DTO/Sound/Request/CreateSoundDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace PF3.DTO.SoundCategory.Request;
|
||||
|
||||
public class CreateSoundDto
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Type { get; set; }
|
||||
public string? Artist { get; set; }
|
||||
public string? Duration { get; set; }
|
||||
public string? Kind { get; set; }
|
||||
public string? Format { get; set; }
|
||||
public DateTime? CreationDate { get; set; }
|
||||
public string? SoundCategoryId { get; set; }
|
||||
|
||||
}
|
6
PF3/DTO/Sound/Request/IdSoundto.cs
Normal file
6
PF3/DTO/Sound/Request/IdSoundto.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace PF3.DTO.SoundCategory.Request;
|
||||
|
||||
public class IdSoundto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
15
PF3/DTO/Sound/Request/UpdateSoundDto.cs
Normal file
15
PF3/DTO/Sound/Request/UpdateSoundDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace PF3.DTO.SoundCategory.Request;
|
||||
|
||||
public class UpdateSoundDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public string? Type { get; set; }
|
||||
public string? Artist { get; set; }
|
||||
public string? Duration { get; set; }
|
||||
public string? Kind { get; set; }
|
||||
public string? Format { get; set; }
|
||||
public DateTime? CreationDate { get; set; }
|
||||
public string? SoundCategoryId { get; set; }
|
||||
|
||||
}
|
15
PF3/DTO/Sound/Response/ReadSoundDto.cs
Normal file
15
PF3/DTO/Sound/Response/ReadSoundDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace PF3.DTO.SoundCategory.Response;
|
||||
|
||||
public class ReadSoundDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public string? Type { get; set; }
|
||||
public string? Artist { get; set; }
|
||||
public string? Duration { get; set; }
|
||||
public string? Kind { get; set; }
|
||||
public string? Format { get; set; }
|
||||
public DateTime? CreationDate { get; set; }
|
||||
public string? SoundCategoryId { get; set; }
|
||||
|
||||
}
|
6
PF3/DTO/SoundCategory/Request/CreateSoundCategoryDto.cs
Normal file
6
PF3/DTO/SoundCategory/Request/CreateSoundCategoryDto.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace PF3.DTO.SoundCategory.Request;
|
||||
|
||||
public class CreateSoundCategoryDto
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
}
|
6
PF3/DTO/SoundCategory/Request/IdSoundCategoryDto.cs
Normal file
6
PF3/DTO/SoundCategory/Request/IdSoundCategoryDto.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace PF3.DTO.SoundCategory.Request;
|
||||
|
||||
public class IdSoundCategoryDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
7
PF3/DTO/SoundCategory/Request/UpdateSoundCategoryDto.cs
Normal file
7
PF3/DTO/SoundCategory/Request/UpdateSoundCategoryDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace PF3.DTO.SoundCategory.Request;
|
||||
|
||||
public class UpdateSoundCategoryDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? Name { get; set; }
|
||||
}
|
7
PF3/DTO/SoundCategory/Response/ReadSoundCategoryDto.cs
Normal file
7
PF3/DTO/SoundCategory/Response/ReadSoundCategoryDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace PF3.DTO.SoundCategory.Response;
|
||||
|
||||
public class ReadSoundCategoryDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? Name { get; set; }
|
||||
}
|
9
PF3/DTO/SoundTimecode/Request/CreateSoundTimecodeDto.cs
Normal file
9
PF3/DTO/SoundTimecode/Request/CreateSoundTimecodeDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace PF3.DTO.SoundTimecode.Request;
|
||||
|
||||
public class CreateSoundTimecodeDto
|
||||
{
|
||||
public int? ShowId { get; set; }
|
||||
public int? SoundId { get; set; }
|
||||
public string? Start { get; set; }
|
||||
public string? End { get; set; }
|
||||
}
|
6
PF3/DTO/SoundTimecode/Request/IdSoundTimecodeDto.cs
Normal file
6
PF3/DTO/SoundTimecode/Request/IdSoundTimecodeDto.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace PF3.DTO.SoundTimecode.Request;
|
||||
|
||||
public class IdSoundTimecodeDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
10
PF3/DTO/SoundTimecode/Request/UpdateSoundTimecodeDto.cs
Normal file
10
PF3/DTO/SoundTimecode/Request/UpdateSoundTimecodeDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace PF3.DTO.SoundTimecode.Request;
|
||||
|
||||
public class UpdateSoundTimecodeDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public int? ShowId { get; set; }
|
||||
public int? SoundId { get; set; }
|
||||
public string? Start { get; set; }
|
||||
public string? End { get; set; }
|
||||
}
|
10
PF3/DTO/SoundTimecode/Response/ReadSoundTimecodeDto.cs
Normal file
10
PF3/DTO/SoundTimecode/Response/ReadSoundTimecodeDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace PF3.DTO.SoundTimecode.Response;
|
||||
|
||||
public class ReadSoundTimecodeDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public int? ShowId { get; set; }
|
||||
public int? SoundId { get; set; }
|
||||
public string? Start { get; set; }
|
||||
public string? End { get; set; }
|
||||
}
|
9
PF3/DTO/Staff/Request/CreateStaffDto.cs
Normal file
9
PF3/DTO/Staff/Request/CreateStaffDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace PF3.DTO.Staff.Request;
|
||||
|
||||
public class CreateStaffDto
|
||||
{
|
||||
public string? FirstName { get; set; }
|
||||
public string? LastName { get; set; }
|
||||
public string? Profession { get; set; }
|
||||
public string? Email { get; set; }
|
||||
}
|
6
PF3/DTO/Staff/Request/IdStaffDto.cs
Normal file
6
PF3/DTO/Staff/Request/IdStaffDto.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace PF3.DTO.Staff.Request;
|
||||
|
||||
public class IdStaffDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
10
PF3/DTO/Staff/Request/UpdateStaffDto.cs
Normal file
10
PF3/DTO/Staff/Request/UpdateStaffDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace PF3.DTO.Staff.Request;
|
||||
|
||||
public class UpdateStaffDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? FirstName { get; set; }
|
||||
public string? LastName { get; set; }
|
||||
public string? Profession { get; set; }
|
||||
public string? Email { get; set; }
|
||||
}
|
10
PF3/DTO/Staff/Response/ReadStaffDto.cs
Normal file
10
PF3/DTO/Staff/Response/ReadStaffDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace PF3.DTO.Staff.Response;
|
||||
|
||||
public class ReadStaffDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? FirstName { get; set; }
|
||||
public string? LastName { get; set; }
|
||||
public string? Profession { get; set; }
|
||||
public string? Email { get; set; }
|
||||
}
|
10
PF3/DTO/Truck/Request/CreateTruckDto.cs
Normal file
10
PF3/DTO/Truck/Request/CreateTruckDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace PF3.DTO.Truck.Request;
|
||||
|
||||
public class CreateTruckDto
|
||||
{
|
||||
public string? Type { get; set; }
|
||||
public double? MaxExplosiveCapacity { get; set; }
|
||||
public string? Sizes { get; set; }
|
||||
public bool? Statut { get; set; }
|
||||
public int? ShowId { get; set; }
|
||||
}
|
6
PF3/DTO/Truck/Request/IdTruckDto.cs
Normal file
6
PF3/DTO/Truck/Request/IdTruckDto.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace PF3.DTO.Truck.Request;
|
||||
|
||||
public class IdTruckDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
11
PF3/DTO/Truck/Request/UpdateTruckDto.cs
Normal file
11
PF3/DTO/Truck/Request/UpdateTruckDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace PF3.DTO.Truck.Request;
|
||||
|
||||
public class UpdateTruckDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? Type { get; set; }
|
||||
public string? MaxExplosiveCapacity { get; set; }
|
||||
public string? Sizes { get; set; }
|
||||
public bool? Statut { get; set; }
|
||||
public int? ShowId { get; set; }
|
||||
}
|
11
PF3/DTO/Truck/Response/ReadTruckDto.cs
Normal file
11
PF3/DTO/Truck/Response/ReadTruckDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace PF3.DTO.Truck.Response;
|
||||
|
||||
public class ReadTruckDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? Type { get; set; }
|
||||
public string? MaxExplosiveCapacity { get; set; }
|
||||
public string? Sizes { get; set; }
|
||||
public bool? Statut { get; set; }
|
||||
public int? ShowId { get; set; }
|
||||
}
|
27
PF3/Models/Show.cs
Normal file
27
PF3/Models/Show.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace PF3.Models;
|
||||
|
||||
public class Show
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
public string? Name { get; set; }
|
||||
|
||||
[Required, MaxLength(120)]
|
||||
public string? Place { get; set; }
|
||||
|
||||
[MaxLength(500)]
|
||||
public string? Description { get; set; }
|
||||
|
||||
// Lien (chemin/URL/nom de fichier) vers le plan d’implémentation pyrotechnique
|
||||
[Required, MaxLength(500)]
|
||||
public string? PyrotechnicImplementationPlan { get; set; }
|
||||
|
||||
public DateTime? Date { get; set; }
|
||||
|
||||
public ICollection<Staff> Staff { get; set; } = new List<Staff>();
|
||||
public ICollection<Truck> Trucks { get; set; } = new List<Truck>();
|
||||
public ICollection<SoundTimecode> SoundCues { get; set; } = new List<SoundTimecode>();
|
||||
}
|
35
PF3/Models/Sound.cs
Normal file
35
PF3/Models/Sound.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using PF3.Models;
|
||||
|
||||
namespace PF3.Models;
|
||||
|
||||
public class Sound
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
[Required, MaxLength(120)]
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
[Required, MaxLength(60)]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[Required, MaxLength(120)]
|
||||
public string? Artist { get; set; }
|
||||
|
||||
[Required, Range(0, int.MaxValue)]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
[Required, MaxLength(40)]
|
||||
public string? Kind { get; set; }
|
||||
|
||||
[Required, MaxLength(40)]
|
||||
public string? Format { get; set; }
|
||||
|
||||
public DateTime? CreationDate { get; set; }
|
||||
|
||||
[Required]
|
||||
public int SoundCategoryId { get; set; }
|
||||
public SoundCategory? Category { get; set; }
|
||||
|
||||
public ICollection<SoundTimecode> ShowPlacements { get; set; } = new List<SoundTimecode>();
|
||||
}
|
13
PF3/Models/SoundCategory.cs
Normal file
13
PF3/Models/SoundCategory.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace PF3.Models;
|
||||
|
||||
public class SoundCategory
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
[Required, MaxLength(60)]
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
public ICollection<Sound> Sounds { get; set; } = new List<Sound>();
|
||||
}
|
22
PF3/Models/SoundTimecode.cs
Normal file
22
PF3/Models/SoundTimecode.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace PF3.Models;
|
||||
|
||||
public class SoundTimecode
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
public int ShowId { get; set; }
|
||||
public Show? Show { get; set; }
|
||||
|
||||
[Required]
|
||||
public int SoundId { get; set; }
|
||||
public Sound? Sound { get; set; }
|
||||
|
||||
[Required, Range(0, int.MaxValue)]
|
||||
public int Start { get; set; }
|
||||
|
||||
[Required, Range(0, int.MaxValue)]
|
||||
public int End { get; set; }
|
||||
}
|
22
PF3/Models/Staff.cs
Normal file
22
PF3/Models/Staff.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace PF3.Models;
|
||||
|
||||
public class Staff
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
[Required, MaxLength(60)]
|
||||
public string FirstName { get; set; } = null!;
|
||||
|
||||
[Required, MaxLength(60)]
|
||||
public string LastName { get; set; } = null!;
|
||||
|
||||
[Required, MaxLength(100)]
|
||||
public string? Profession { get; set; }
|
||||
|
||||
[Required, MaxLength(120)]
|
||||
public string? Email { get; set; }
|
||||
|
||||
public ICollection<Show> Shows { get; set; } = new List<Show>();
|
||||
}
|
24
PF3/Models/Truck.cs
Normal file
24
PF3/Models/Truck.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace PF3.Models;
|
||||
|
||||
public class Truck
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
[Required, MaxLength(40)]
|
||||
public string Type { get; set; } = null!;
|
||||
|
||||
[Range(0, double.MaxValue)]
|
||||
public double? MaxExplosiveCapacity { get; set; }
|
||||
|
||||
[Required, MaxLength(80)]
|
||||
public string? Sizes { get; set; }
|
||||
|
||||
[Required, MaxLength(40)]
|
||||
public string? Statut { get; set; }
|
||||
|
||||
[Required]
|
||||
public int ShowId { get; set; }
|
||||
public Show? Show { get; set; }
|
||||
}
|
@@ -11,4 +11,11 @@
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="DTO\Show\" />
|
||||
<Folder Include="DTO\SoundCategory\" />
|
||||
<Folder Include="DTO\SoundTimecode\" />
|
||||
<Folder Include="Endpoint\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
Reference in New Issue
Block a user