Commit graph

15 commits

Author SHA1 Message Date
Lum
98613e7070 Blog: enforce Restrict FK on BlogPost.Author and Comment.Author
Tout billet a un auteur, tout commentaire a un auteur. On aligne la
base sur ce contrat (Postgres) en droppant les orphelins existants
puis en remplaçant les FK en cascade par des FK Restrict.

- ApplicationDbContext: fluent pour BlogPost.Author et Comment.Author
  en DeleteBehavior.Restrict.
- ApplicationUser: ajoute la nav inverse BlogComments (manquait,
  EF aurait sinon créé une shadow FK).
- Migration 20260711173717_EnforceBlogAuthorFKs: Up purge les
  Comment/BlogSpot dont l'AuthorId n'existe plus, log le volume,
  puis drop+add des FK. Down laisse la cascade (état pré-migration).

Le code applicatif (BlogSpotService.Details) s'appuiera sur cette
contrainte dans un commit séparé.
2026-07-11 18:45:27 +01:00
Paul Schneider
40e8e08690 reorg 2026-02-28 21:17:54 +00:00
Paul Schneider
45514010f2 REORG 2026-02-14 16:54:27 +00:00
Paul Schneider
253a2919f3 misc 2025-07-07 07:49:18 +01:00
Paul Schneider
31d4f74e6d WIP allow blog comment 2025-07-05 13:21:50 +01:00
Paul Schneider
21cd878839 fixies the refact of blog spot index 2025-06-29 19:53:56 +01:00
Paul Schneider
4b52b6e96e Got a login 2023-04-06 09:20:22 +01:00
Paul Schneider
2666492a18 a blog index 2023-04-01 15:03:48 +01:00
Paul Schneider
a02085f086 a migration 2023-03-26 21:48:25 +01:00
Paul Schneider
8929cc9bfa got the server lib 2023-03-19 16:39:04 +00:00
cdc18fd547 Circles, pub & auth
* Adds a boolean to each Circle, saying that
  it is public, and its existence may be known by any interested in
* Adds claims of type "YavscClaimTypes.CircleMembership" at
  login, in order to implement some faster authorisation processes and file restricted accesses.
2019-07-30 18:46:22 +02:00
4c496e08d1 presentation & tools 2019-06-22 19:34:39 +01:00
44224e955f push messages are sent upon user ids 2019-05-24 20:17:24 +01:00
df9ff16c5c dropping GCM support 2019-05-08 01:57:18 +01:00
ccc91bbf19 files tree made better. 2019-01-01 16:29:36 +00:00
Renamed from Yavsc.Server/Models/ApplicationUser.cs (Browse further)