doc : Architecute

This commit is contained in:
Paul Schneider 2026-06-12 12:34:02 +01:00
commit bba719c8c1
745 changed files with 224 additions and 97283 deletions

View file

@ -0,0 +1,15 @@
namespace Yavsc.Domains.Musical;
public class LicenceTemplate
{
public long Id { get; set; }
public string Nom { get; set; }
public string Texte { get; set; } // ou Uri vers le texte officiel
public bool EstLibre { get; set; }
public bool PermetUsageCommercial { get; set; }
public bool PermetModification { get; set; }
public bool ExigePartageAIdentique { get; set; } // ShareAlike
public bool ExigeAttribution { get; set; } // BY
public bool AdminValidated { get; set; }
public DateTimeOffset DateValidation { get; set; }
public string AdminValidateurId { get; set; } // FK vers ApplicationUser
}

View file

@ -0,0 +1,43 @@
namespace Yavsc.Domains.Musical;
public static class LicenceModelesSeed
{
public static IEnumerable<LicenceTemplate> GetSeedData() => new[]
{
new LicenceTemplate {
Id = 1, Nom = "CC0 1.0", IsFreeAndOpen = true,
PermetUsageCommercial = true, PermetModification = true,
ExigeAttribution = false, ExigePartageAIdentique = false,
Texte = "https://creativecommons.org/publicdomain/zero/1.0/",
AdminValidated = true
},
new LicenceTemplate {
Id = 2, Nom = "CC BY 4.0", IsFreeAndOpen = true,
PermetUsageCommercial = true, PermetModification = true,
ExigeAttribution = true, ExigePartageAIdentique = false,
Texte = "https://creativecommons.org/licenses/by/4.0/",
AdminValidated = true
},
new LicenceTemplate {
Id = 3, Nom = "CC BY-SA 4.0", IsFreeAndOpen = true,
PermetUsageCommercial = true, PermetModification = true,
ExigeAttribution = true, ExigePartageAIdentique = true,
Texte = "https://creativecommons.org/licenses/by-sa/4.0/",
AdminValidated = true
},
new LicenceTemplate {
Id = 4, Nom = "CC BY-NC 4.0", IsFreeAndOpen = false,
PermetUsageCommercial = false, PermetModification = true,
ExigeAttribution = true, ExigePartageAIdentique = false,
Texte = "https://creativecommons.org/licenses/by-nc/4.0/",
AdminValidated = true
},
new LicenceTemplate {
Id = 5, Nom = "CC BY-NC-SA 4.0", IsFreeAndOpen = false,
PermetUsageCommercial = false, PermetModification = true,
ExigeAttribution = true, ExigePartageAIdentique = true,
Texte = "https://creativecommons.org/licenses/by-nc-sa/4.0/",
AdminValidated = true
},
};
}

View file

@ -0,0 +1,10 @@
namespace Yavsc.Domains.Musical;
public class ProjetMusical
{
public long Id { get; set; }
public string Titre { get; set; }
public long LicenceModeleId { get; set; }
public LicenceTemplate Licence { get; set; }
// ... contributeurs, fichiers, devis liés
}