SHA256
- 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.
33 lines
1.2 KiB
C#
33 lines
1.2 KiB
C#
namespace Somnia.GuestLog;
|
|
|
|
public static class GuestConsts
|
|
{
|
|
|
|
public const string Page_GuestDocs_List = "/guest-documents";
|
|
public const string Page_GuestDocs_New = "/guest-documents/new";
|
|
public const string Page_GuestDocs_Detail = $"/guest-documents/d/{Page_GuestDocs_Detail_Param_DocId}";
|
|
public const string Page_GuestDocs_Detail_Param_DocId = "{docId:long}";
|
|
|
|
public const string Page_StayEntry_List = "/stayEntries";
|
|
public const string Page_StayEntry_New = "/stayEntries/new";
|
|
public const string Page_StayEntry_Detail = $"/stayEntries/d/{Page_StayEntry_Detail_Param_Id}";
|
|
public const string Page_StayEntry_Detail_Param_Id = "{StayId:long}";
|
|
|
|
|
|
public const string QueryParam_ReturnUrl = "returnUrl";
|
|
|
|
|
|
public const string DataList_DocumentTypes = "DocumentType";
|
|
public const string DataList_GenderOptions = "GenderOption";
|
|
public const string DataList_CountryCodes = "CountryCode";
|
|
public const string DataList_PaymentMethods = "PaymentMethod";
|
|
|
|
|
|
public const string CountryCode_ESP = "ESP";
|
|
|
|
public const string DocumentType_DNI = "DNI";
|
|
public const string DocumentType_NIE = "NIE";
|
|
public const string DocumentType_PASSPORT = "PASSPORT";
|
|
|
|
public const int GuestDocument_FirstVersion = 1;
|
|
} |