Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountStatus ¶
type AccountStatus struct { Id uint8 `gorm:"primaryKey;column:id;autoIncrement;not null;unique"` Status string `gorm:"column:status;type:varchar(100);not null"` AccStatus []UserAccount `gorm:"foreignKey:status_id"` }
type AssetType ¶
type AssetType struct { Id uint16 `gorm:"primaryKey;column:id;autoIncrement;not null;unique"` AssetType string `gorm:"column:asset_type;type:varchar(100);not null;unique"` UserAsset UserAssets `gorm:"foreignKey:asset_type_id"` }
type Country ¶
type Country struct { Id uint16 `gorm:"primaryKey;autoIncrement;unique;not null"` Name string `gorm:"column:name;type:varchar(255);not null;unique"` Capital string `gorm:"column:capital;type:varchar(200);not null"` Cca3 string `gorm:"column:cca3;type:varchar(10);not null"` CallingCode string `gorm:"column:callingcode;type:varchar(10);not null"` TimeZones pgtype.JSONB `gorm:"column:timezones;type:jsonb;default:'{}'"` States pgtype.JSONB `gorm:"column:states;type:jsonb;default:'[]'"` Latitude string `gorm:"column:latitude;type:varchar(15);not null"` Longitude string `gorm:"column:longitude;type:varchar(15);not null"` FlagPng string `gorm:"column:flagpng;type:varchar(255);not null"` FlagSvg string `gorm:"column:flagsvg;type:varchar(255);not null"` CurrCode string `gorm:"column:currcode;type:varchar(6);not null"` CurrName string `gorm:"column:currname;type:varchar(50);not null"` CurrSymbol string `gorm:"column:currsymbol;type:varchar(10);not null"` HotelInfo []Hotel `gorm:"foreignKey:country_id"` KYCInfo UserInfo `gorm:"foreingkey:country_id"` }
type File ¶
type File struct { Filename uuid.UUID `gorm:"primaryKey;column:filename;type:varchar(36);unique"` Filetype string `gorm:"column:filetype;type:varchar(10)"` Filesize int `gorm:"column:filesize;type:int4"` Binary []byte `gorm:"column:binary;type:bytea"` CreatedAt time.Time `gorm:"column:created_at"` AssetHasHotel []HotelAssets `gorm:"foreignKey:file_id;references:filename"` AssetHasUser []UserAssets `gorm:"foreignKey:file_id;references:filename"` }
type Hotel ¶
type Hotel struct { Id uuid.UUID `gorm:"primaryKey;column:id;type:varchar(36);unique"` NameHotel string `gorm:"index;column:name_hotel;type:varchar(100);unique;not null"` Address string `gorm:"column:address;type:varchar(200);not null"` ServicePhoneNumber string `gorm:"column:service_phone_number;type:varchar(20);not null"` State string `gorm:"column:state;type:varchar(200)"` Province string `gorm:"column:province;type:varchar(200);not null"` CreatedAt time.Time `gorm:"column:created_at"` OwnerId uuid.UUID `gorm:"column:owner_id;primaryKey"` CountryID uint16 `gorm:"column:country_id;primaryKey"` StatusID uint16 `gorm:"column:status_id;primaryKey;default:1"` HotelHasAsset []HotelAssets `gorm:"foreignKey:hotel_id"` }
type HotelAssets ¶
type HotelStatus ¶
type KYCReviewRequest ¶
type KYCReviewRequest struct { Id uuid.UUID `gorm:"primaryKey;column:id;type:varchar(36);unique"` UserRef string `gorm:"column:user_ref;type:varchar(36);not null"` AdminRef string `gorm:"column:admin_ref;type:varchar(36)"` PreRevStatus string `gorm:"column:pre_rev_status;type:varchar(100);not null"` PostRevStatus string `gorm:"column:post_rev_status;type:varchar(100)"` CreatedAt time.Time `gorm:"column:created_at;not null"` UpdatedAt time.Time `gorm:"column:updated_at"` IsAssigned bool `gorm:"column:is_assigned;type:bool;not null;default:false"` ReviewStatusId uint8 `gorm:"column:review_status_id;primaryKey"` }
type Profile ¶
type Profile struct { Id uint16 `gorm:"primaryKey;column:id;autoIncrement;not null;unique"` Profile string `gorm:"column:profile;type:varchar(20);not null"` ProfileHasUser []UserProfiles `gorm:"foreignKey:profile_id"` }
type ReviewStatus ¶
type ReviewStatus struct { Id uint8 `gorm:"primaryKey;column:id;autoIncrement;not null;unique"` Status string `gorm:"column:status;type:varchar(100);not null"` Reviews []KYCReviewRequest `gorm:"foreignKey:review_status_id"` }
type UserAccount ¶
type UserAccount struct { Id uuid.UUID `gorm:"primaryKey;column:id;type:varchar(36);unique"` Email string `gorm:"column:email;type:varchar(200);not null;unique"` Password string `gorm:"column:password;type:varchar(255);not null"` PhoneNumber string `gorm:"column:phone_number;type:varchar(20);not null;unique"` IsRoot bool `gorm:"column:is_root;type:bool;not null;default:false"` TwoFactorAuth bool `gorm:"column:two_factor_auth;type:bool;not null;default:false"` CreatedAt time.Time `gorm:"column:created_at"` UpdatedAt time.Time `gorm:"column:updated_at"` UserKYC UserInfo `gorm:"foreignKey:user_id"` OwnerHotel []Hotel `gorm:"foreignKey:owner_id"` UserHasProfile []UserProfiles `gorm:"foreignKey:user_id"` UserHasAsset []UserAssets `gorm:"foreignKey:user_id"` StatusId uint8 `gorm:"column:status_id;primaryKey"` }
type UserAssets ¶
type UserInfo ¶
type UserInfo struct { Id uint32 `gorm:"primaryKey;column:id;autoIncrement;not null;unique"` FirstName string `gorm:"column:first_name;type:varchar(100);not null"` LastName string `gorm:"column:last_name;type:varchar(100);not null"` Address string `gorm:"column:address;type:varchar(255);not null"` Birthdate string `gorm:"column:birthdate;type:varchar(10);not null"` DNI string `gorm:"column:dni;type:varchar(100);not null;unique"` CountryID uint16 `gorm:"column:country_id;primaryKey"` UserId uuid.UUID `gorm:"column:user_id;primaryKey"` }
Click to show internal directories.
Click to hide internal directories.