agrs-sequelize-sdk 1.3.68 → 1.3.71

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
@@ -123,6 +123,12 @@ module.exports = (sequelize, DataTypes) => {
123
123
  allowNull: true,
124
124
  comment: "Detailed reason for policy rejection from Predicto"
125
125
  },
126
+ dogs_processed: {
127
+ type: DataTypes.BOOLEAN,
128
+ defaultValue: false,
129
+ allowNull: true,
130
+ comment: "Whether this ad has been processed by the rejected-ad dogs replacement job",
131
+ },
126
132
  waiting: {
127
133
  type: DataTypes.BOOLEAN,
128
134
  defaultValue: false,
@@ -0,0 +1,30 @@
1
+ module.exports = (sequelize, DataTypes) => {
2
+ const PolicyDogsImageCache = sequelize.define(
3
+ "PolicyDogsImageCache",
4
+ {
5
+ ad_account_id: {
6
+ type: DataTypes.STRING,
7
+ primaryKey: true,
8
+ allowNull: false,
9
+ comment: "Facebook ad account ID (e.g., act_123456)",
10
+ },
11
+ image_hash: {
12
+ type: DataTypes.STRING,
13
+ allowNull: false,
14
+ comment: "Facebook image hash for the dog image uploaded to this account",
15
+ },
16
+ uploaded_at: {
17
+ type: DataTypes.DATE,
18
+ allowNull: false,
19
+ defaultValue: DataTypes.NOW,
20
+ comment: "When the image was uploaded to this ad account",
21
+ },
22
+ },
23
+ {
24
+ tableName: "policy_dogs_image_cache",
25
+ timestamps: false,
26
+ }
27
+ );
28
+
29
+ return PolicyDogsImageCache;
30
+ };
package/models/Users.js CHANGED
@@ -75,6 +75,16 @@ module.exports = (sequelize, DataTypes) => {
75
75
  allowNull: true,
76
76
  defaultValue: [],
77
77
  },
78
+ AccountsEdit: {
79
+ type: DataTypes.ARRAY(DataTypes.STRING),
80
+ allowNull: true,
81
+ defaultValue: [],
82
+ },
83
+ AccountsAI: {
84
+ type: DataTypes.ARRAY(DataTypes.STRING),
85
+ allowNull: true,
86
+ defaultValue: [],
87
+ },
78
88
  LastEntrance: {
79
89
  type: DataTypes.DATE, // Array of organization IDs
80
90
  allowNull: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.3.68",
3
+ "version": "1.3.71",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",