agrs-sequelize-sdk 1.3.71 → 1.3.73

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.
@@ -0,0 +1,50 @@
1
+ module.exports = (sequelize, DataTypes) => {
2
+ const PolicyDogsCreativeCache = sequelize.define(
3
+ "PolicyDogsCreativeCache",
4
+ {
5
+ id: {
6
+ type: DataTypes.INTEGER,
7
+ primaryKey: true,
8
+ autoIncrement: true,
9
+ },
10
+ ad_account_id: {
11
+ type: DataTypes.STRING,
12
+ allowNull: false,
13
+ comment: "Facebook ad account ID (e.g., act_123456)",
14
+ },
15
+ page_id: {
16
+ type: DataTypes.STRING,
17
+ allowNull: false,
18
+ comment: "Facebook page ID used in the creative",
19
+ },
20
+ dog_url: {
21
+ type: DataTypes.TEXT,
22
+ allowNull: false,
23
+ comment: "The dog article URL used in the creative",
24
+ },
25
+ creative_id: {
26
+ type: DataTypes.STRING,
27
+ allowNull: false,
28
+ comment: "Facebook creative ID to reuse",
29
+ },
30
+ created_at: {
31
+ type: DataTypes.DATE,
32
+ allowNull: false,
33
+ defaultValue: DataTypes.NOW,
34
+ },
35
+ },
36
+ {
37
+ tableName: "policy_dogs_creative_cache",
38
+ timestamps: false,
39
+ indexes: [
40
+ {
41
+ unique: true,
42
+ fields: ["ad_account_id", "page_id", "dog_url"],
43
+ name: "idx_dogs_creative_cache_unique",
44
+ },
45
+ ],
46
+ }
47
+ );
48
+
49
+ return PolicyDogsCreativeCache;
50
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.3.71",
3
+ "version": "1.3.73",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",