* 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)
| 3380 | * @returns {Promise} hash of attributes and their types |
| 3381 | */ |
| 3382 | static async describe(schema, options) { |
| 3383 | return await this.queryInterface.describeTable(this.tableName, { schema: schema || this._schema || undefined, ...options }); |
| 3384 | } |
| 3385 | |
| 3386 | static _getDefaultTimestamp(attr) { |
| 3387 | if (!!this.rawAttributes[attr] && !!this.rawAttributes[attr].defaultValue) { |
no test coverage detected