agrs-sequelize-sdk 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/models/Ad.js CHANGED
@@ -81,6 +81,10 @@ module.exports = (sequelize, DataTypes) => {
81
81
  type: DataTypes.STRING,
82
82
  allowNull: true,
83
83
  },
84
+ Draft: {
85
+ type: DataTypes.STRING,
86
+ allowNull: true,
87
+ }
84
88
  },
85
89
  {
86
90
  tableName: "Ad",
@@ -65,6 +65,10 @@ module.exports = (sequelize, DataTypes) => {
65
65
  type: DataTypes.INTEGER,
66
66
  allowNull: false,
67
67
  },
68
+ Draft: {
69
+ type: DataTypes.STRING,
70
+ allowNull: true,
71
+ }
68
72
  },
69
73
  {
70
74
  tableName: "AdAccount",
@@ -42,6 +42,10 @@ module.exports = (sequelize, DataTypes) => {
42
42
  allowNull: false,
43
43
  defaultValue: "FLEXIBLE",
44
44
  },
45
+ Draft: {
46
+ type: DataTypes.STRING,
47
+ allowNull: true,
48
+ }
45
49
  });
46
50
 
47
51
  // Define associations
package/models/AdSet.js CHANGED
@@ -40,7 +40,10 @@ module.exports = (sequelize, DataTypes) => {
40
40
  allowNull: false,
41
41
  defaultValue: "offsite_conversions", // Default value for OptimizationGoal
42
42
  },
43
-
43
+ Draft: {
44
+ type: DataTypes.STRING,
45
+ allowNull: true,
46
+ },
44
47
  CampaignID: {
45
48
  type: DataTypes.STRING,
46
49
  allowNull: false,
@@ -92,6 +92,10 @@ module.exports = (sequelize, DataTypes) => {
92
92
  type: DataTypes.INTEGER,
93
93
  allowNull: true,
94
94
  },
95
+ Draft: {
96
+ type: DataTypes.STRING,
97
+ allowNull: true,
98
+ }
95
99
  },
96
100
  {
97
101
  tableName: "Campaign",
@@ -79,6 +79,7 @@ module.exports = (sequelize, DataTypes) => {
79
79
  createdCampaignAt: {
80
80
  type: DataTypes.DATE,
81
81
  allowNull: true, // Ensure this is allowed to be null if necessary
82
+ defaultValue: DataTypes.NOW,
82
83
  },
83
84
  });
84
85
  CodefuelCampaign.associate = (models) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",