SHA256
GuestDocument Versions - Part 1:
- Changed GuestDocument PK from `DocumentType`+`DocumentNumber` to to `ID`+`Version` for future versioning. - Added DB field "IsLastVersion" to simplify queries where only last/current version is allowed. - Updated GuestDocument DB fields type for `CreateTime` & `UpdateTime` to add precision. - Updated usages of GuestDocument PK to new PK. - Limit delete of a GuestDocument when it's currently used in a StayEntry. Note: DB changes require recreating db tables, so all data is lost and migration "rollback" is not allowed.
This commit is contained in:
1 parent
a01eed82e1
commit
887c3d787a
21 files changed
+525
-93
No files matched your search
@@ -2,9 +2,13 @@ namespace Somnia.GuestLog.Enums.Services;
|
||||
|
||||
public enum ResultCode
|
||||
{
|
||||
//Common Codes
|
||||
Ok,
|
||||
UnknownError,
|
||||
FailedValidation,
|
||||
NotFound,
|
||||
|
||||
//Specific Codes
|
||||
GuestInStay,
|
||||
GuestCurrentlyInStay,
|
||||
}
|
||||
Reference in new issue
Block a user