$customHeader
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Models

Mandatory fields have *

Technical fields have **

HistoryModel

Field in HistoryModel

  • UUID (char(36))**

  • isActive (bool)**

  • Json_ext (json)

  • DateCreated (date)**

  • DateUpdated (date)**

  • UserUpdatedUUID (fk users)**

  • UserCreatedUUID (fk users)**

Actions

on create:

  • save the action in the history log (django-simple-history)

  • UUID is generated (on database level ? Dragos Dobre ?)

  • update:

    • DateCreated (date)**

    • DateUpdated (date)**

    • UserUpdatedUUID (fk users)**

    • UserCreatedUUID (fk users)**

    • version = 1

on update:

  • save the action in the history log (django-simple-history)

  • check that the version save is still the same as the one in-memory

  • update the fields

    • DateUpdated (date)**

    • UserUpdatedUUID (fk users)**

    • version (+1)

on Delete:

  • save the action in the history log (django-simple-history)

  • check that the version save is still the same as the one in-memory

  • update the fields

    • DateUpdated (date)**

    • UserUpdatedUUID (fk users)**

    • version (+1)

    • isActive to false()

HistoryBusinessModel

Field in HistoryBusinessModel

  • HistoryModel fields

  • DateValidFrom (date)*

  • DateValidTo (date)

  • UUIDReplacement (varchar 36) (to be confirmed)

Actions

on create: same as HistoryModel

on update: same as HistoryModel

on Delete: same as HistoryModel

on Replace

  • update the fields for the to be replace

    • save the action in the history log (django-simple-history)

    • check that the version save is still the same as the one in-memory

    • update

      • DateUpdated (date)**

      • UserUpdatedUUID (fk users)**

      • version (+1)

      • ValidityTo set to ValidityFrom the new entity

  • create the new entity,

    • save the action in the history log (django-simple-history)

    • UUID is generated (on database level ? Dragos Dobre ?)

    • Update

      • DateCreated (date)**

      • DateUpdated (date)**

      • UserUpdatedUUID (fk users)**

      • UserCreatedUUID (fk users)**

      • version = 1

    • check that

      • DateValidFrom is not empty

  • No labels