فتح مغلق

Database constraints in audit properties #1778


User avatar
0
LW خلقت
  • ABP Framework version: v4.4.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

Hello, is there a reason why no foreign key constraints are create from the audit fields CreatorId and LastModifierId to the user? Is is preferred to keep that way or could we add such contraints? Our use case is to show the last updater user in UI.


2 إجابة (إجابات)
  • User Avatar
    1
    maliming خلقت
    فريق الدعم Fullstack Developer

    hi

    Because the audit module may be an independent service. Or use a different database or even MongoDb, We don't recommend creating foreign key relationships for them.

  • User Avatar
    0
    ServiceBot خلقت
    فريق الدعم Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v8.2.0-preview Updated on مارس 25, 2024, 15:11