Fixes #1 - adds tracking via Laravel Eloquent model for basic agreement attributes.
Purpose
Since contracts of all types are at their root agreements, this PR provides a basic means by which to uniquely and functionally identify them.
Approach
UUIDv4 is leveraged for agreement identification
Assume that all agreements have at least an order number and potentially a release number. This holds true for X12 and EDIFACT, but it does not take into account other practices which may alter these identifiers. While this is not a hardcoded value, it is instead just a lookup string, a further breakdown would require a polymorphic field.
Lessons Learned
Added laravel-uuid package to support UUID. This package requires several overrides to ensure eloquent functions as expected. Interestingly the name 'id' seems to be reserved by Eloquent and returns '0' always with the tests, renaming to 'uuid' worked without issue.
Pull Request
Fixes #1 - adds tracking via Laravel Eloquent model for basic agreement attributes.
Purpose
Since contracts of all types are at their root agreements, this PR provides a basic means by which to uniquely and functionally identify them.
Approach
Lessons Learned
Added laravel-uuid package to support UUID. This package requires several overrides to ensure eloquent functions as expected. Interestingly the name 'id' seems to be reserved by Eloquent and returns '0' always with the tests, renaming to 'uuid' worked without issue.