/* eslint-disable camelcase,no-unused-vars,new-cap,no-undef,comma-dangle */
// This file is generated automatically and contain definition for code insight.
// It ignored by UnityBase server because name start from "_".
// Do not modify this file directly, instead run `ubcli createCodeInsightHelper -u root`

/**
 * Build-in UnityBase model
 *
 * @version 5.25.1
 * @module @unitybase/ub
 */

/**
 * File BLOB history.
 * Store historical data for all file based BLOB stores
 *
 * @augments EntityNamespace
 * @mixes mStorage
 */
class ub_blobHistory_ns extends EntityNamespace {}

/**
 * @typedef ubBlobHistoryAttrs
 * @type {object}
 * @property {number} ID
 * @property {number} instance - InstanceID
 * @property {string} entity - Entity
 * @property {string} attribute - Attribute
 * @property {number} revision - Revision
 * @property {boolean} permanent - isPermanent
 * @property {Date} createdAt - Created at
 * @property {string} blobInfo - blobInfo
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ubBlobHistoryAttrs}
 */
ub_blobHistory_ns.attrs = {}

/**
 * File BLOB history.
 * Store historical data for all file based BLOB stores
 *
 * @type {ub_blobHistory_ns}
 */
const ub_blobHistory = new ub_blobHistory_ns()
/**
 * Migration scripts what applied to the current application
 *
 * @augments EntityNamespace
 * @mixes mStorage
 */
class ub_migration_ns extends EntityNamespace {}

/**
 * @typedef ubMigrationAttrs
 * @type {object}
 * @property {number} ID
 * @property {string} modelName - Model
 * @property {string} filePath - File path
 * @property {string} fileSha - SHA256 of file
 * @property {Date} appliedAt - Applied at
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ubMigrationAttrs}
 */
ub_migration_ns.attrs = {}

/**
 * Migration scripts what applied to the current application
 *
 * @type {ub_migration_ns}
 */
const ub_migration = new ub_migration_ns()
/**
 * Current application models versions. Used by migration hooks to perform custom actions. Updated by the migration scenario after a successful migration
 *
 * @augments EntityNamespace
 * @mixes mStorage
 */
class ub_version_ns extends EntityNamespace {}

/**
 * @typedef ubVersionAttrs
 * @type {object}
 * @property {number} ID
 * @property {string} modelName - Model
 * @property {string} version - Version
 * @property {Date} appliedAt - Applied at
 * @property {string} initialVersion - Initial Version
 * @property {Date} initializedAt - Initialized At
 */

/**
 * Attributes defined in metadata. Property does not exist in real life and added for IDE
 *
 * @type {ubVersionAttrs}
 */
ub_version_ns.attrs = {}

/**
 * Current application models versions. Used by migration hooks to perform custom actions. Updated by the migration scenario after a successful migration
 *
 * @type {ub_version_ns}
 */
const ub_version = new ub_version_ns()