* Run a describe query on the table. * * @param {string} [schema] schema name to search table in * @param {object} [options] query options * * @returns {Promise} hash of attributes and their types
(schema, options)
| 3254 | * @returns {Promise} hash of attributes and their types |
| 3255 | */ |
| 3256 | static async describe(schema, options) { |
| 3257 | return await this.queryInterface.describeTable(this.tableName, { schema: schema || this._schema || undefined, ...options }); |
| 3258 | } |
| 3259 | |
| 3260 | static _getDefaultTimestamp(attr) { |
| 3261 | if (!!this.rawAttributes[attr] && !!this.rawAttributes[attr].defaultValue) { |
no test coverage detected