1 | "use strict";
|
2 |
|
3 | module.exports = function(sequelize, DataTypes) {
|
4 | var DeploymentsVersions = sequelize.define("DeploymentsVersions", {
|
5 | id: {
|
6 | type: DataTypes.INTEGER(10),
|
7 | allowNull: false,
|
8 | autoIncrement: true,
|
9 | primaryKey: true
|
10 | },
|
11 | deployment_id: DataTypes.INTEGER(10),
|
12 | app_version: DataTypes.STRING,
|
13 | current_package_id: DataTypes.INTEGER(10),
|
14 | created_at: DataTypes.DATE,
|
15 | updated_at: DataTypes.DATE,
|
16 | }, {
|
17 | tableName: 'deployments_versions',
|
18 | underscored: true,
|
19 | paranoid: true
|
20 | });
|
21 |
|
22 | return DeploymentsVersions;
|
23 | };
|