Skip to main content

users

The user table stores user-related information for a hotel or property management system.

Field NameTypeOtherIndex
idint(11)NOT NULL AUTO_INCREMENT,PK
usertypevarchar(20)CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
usernamevarchar(100)CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
emailvarchar(100)CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
passwordvarchar(150)CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
first_namevarchar(100)CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
last_namevarchar(100)CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
phone_numbervarchar(25)CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
package_idint(11)NOT NULL,
subscription_plan_idint(11)NOT NULL,
featuresmediumtextCHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
subscription_amountmediumtextCHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
subscription_typemediumtextCHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
extraroomamountmediumtextCHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
extraroomcountmediumtextCHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
primary_languageint(11)NOT NULL,
secondary_languagevarchar(100)NOT NULL,
statusenum('active','inactive')CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,Ya
datedate NOT NULL
api_keyvarchar(64)NOT NULL,
main_useridbigint(20)NOT NULL,Ya
app_uservarchar(100)NOT NULL,
payment_cycleenum('monthly','yearly')NOT NULL,
payment_amountvarchar(20)NOT NULL,
hotelkuint(11)NOT NULL,
channelkuint(11)NOT NULL,
lock_dragvarchar(3)NOT NULL,
posint(11)NOT NULL,
accessvarchar(10)NOT NULL,
loyalty_idvarchar(100)NOT NULL,
show_hotelkuint(11)NOT NULL,
min_rowsint(11)NOT NULL,
dynamic_pricingint(11)NOT NULL,
rate_Shopperint(11)NOT NULL,
the_jurnalint(11)NOT NULL,
hotelku_propertiesvarchar(1000)NOT NULL,
resetint(11)NOT NULL,
minthvarchar(18)NOT NULL,
alphavarchar(100)NOT NULL,
minth_tempvarchar(35)NOT NULL,
guiint(11)NOT NULL,
show_bookingkuint(11)NOT NULL,
bookingkuint(11)NOT NULL,
show_crmint(11)NOT NULL,
show_dynamicint(11)NOT NULL,
applicationint(11)NOT NULL,
dashboardvarchar(40)DEFAULT NULL,
main_userid2bigint(20)NOT NULL,Ya
menuint(11)NOT NULL,
serverint(11)NOT NULL,
server_useridint(11)NOT NULL,
privacytinyint(4)DEFAULT '0',
max_export_propertyint(11)DEFAULT '10',
ssotinyint(4)DEFAULT '0',
adminint(11)DEFAULT '0',
resellerint(11)DEFAULT '0',
migration_tokenlongtext
created_attimestampNULL DEFAULT CURRENT_TIMESTAMP,
updated_attimestampNULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,

Below is a breakdown of each field:

Basic Identifiers

  • id: Unique identifier for each user.
  • usertype: Type of user (e.g., admin, hotel owner, guest, reseller).
  • username: Unique username for login.
  • email: Email address of the user.
  • password: Encrypted password for authentication.

Personal Information

  • first_name: User’s first name.
  • last_name: User’s last name.
  • phone_number: Contact number of the user.
  • primary_language: Preferred language for communication.
  • secondary_language: Secondary language option.

Subscription & Billing

  • package_id: The package or plan the user has subscribed to.
  • subscription_plan_id: ID of the subscription plan.
  • subscription_amount: Cost of the subscription.
  • subscription_type: Type of subscription (e.g., monthly, yearly).
  • payment_cycle: Frequency of payments.
  • payment_amount: Amount due per cycle.
  • extraroomamount: Additional charge for extra rooms.
  • extraroomcount: Number of extra rooms added.
  • loyalty_id: Associated loyalty program ID.

Account & Access Control

  • status: Account status (e.g., active, suspended).
  • api_key: API key for external integrations.
  • main_userid: If the user is part of an organization, this links to the main user.
  • main_userid2: Another reference to a primary account.
  • app_user: Indicates if the user accesses the system via a mobile app.
  • access: Defines what features the user can access.
  • admin: Whether the user has admin privileges.
  • reseller: Indicates if the user is a reseller.
  • sso: Whether the user has Single Sign-On (SSO) enabled.
  • reset: Whether the user requires a password reset.

Features & System Settings

  • features: List of enabled features.
  • hotelku: Access to hotel-related functionalities.
  • channelku: Access to channel management.
  • pos: Whether the user can access the POS (Point of Sale) system.
  • lock_drag: Determines if drag-and-drop features are locked.
  • rate_Shopper: Access to rate shopping features.
  • dynamic_pricing: Whether dynamic pricing is enabled.
  • the_jurnal: Indicates if the user has access to an accounting system.
  • hotelku_properties: Number of properties managed by the user.
  • min_rows: Minimum number of rows displayed in tables.
  • minth: Internal field (possibly related to month settings).
  • minth_temp: Temporary field related to minth.
  • alpha: Internal feature flag.
  • gui: User interface settings.
  • server: Server-related settings.
  • server_userid: ID of the server user.

Dashboard & UI Preferences

  • dashboard: Defines the user's dashboard settings.
  • menu: Custom menu settings for the user.
  • show_bookingku: Whether the user sees booking-related features.
  • bookingku: Whether booking functionality is enabled.
  • show_crm: Whether CRM features are visible.
  • show_dynamic: Whether dynamic features are displayed.

Migration & Data Management

  • migration_token: Token used for data migration.
  • max_export_property: Maximum number of properties the user can export.

Privacy & Security

  • privacy: Privacy settings for the user.

Timestamps

  • date: Account creation or last update date.
  • created_at: Timestamp when the user was created.
  • updated_at: Timestamp of the last update.