agrs-sequelize-sdk 1.4.26 → 1.4.27
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/Users.js +17 -0
- package/package.json +1 -1
package/models/Users.js
CHANGED
|
@@ -95,6 +95,23 @@ module.exports = (sequelize, DataTypes) => {
|
|
|
95
95
|
allowNull: true,
|
|
96
96
|
defaultValue: [],
|
|
97
97
|
},
|
|
98
|
+
// Per-platform access gate. Default ['fb'] mirrors the pre-multi-platform
|
|
99
|
+
// org policy: every user can use Facebook unless explicitly revoked, and
|
|
100
|
+
// TikTok / Snapchat require an explicit grant. Allowed entries:
|
|
101
|
+
// 'fb' | 'tt' | 'snp'. Drives:
|
|
102
|
+
// - which platforms appear in the Create-New Platform dropdown for
|
|
103
|
+
// this user;
|
|
104
|
+
// - which platform-tagged AdAccount rows the platform-aware selects
|
|
105
|
+
// return for this user;
|
|
106
|
+
// - whether this user can submit a TT/SNP campaign at all.
|
|
107
|
+
// Managed via the per-user "Platforms" accordion at /dashboard/users/[id].
|
|
108
|
+
// Existing user rows are backfilled to ['fb'] in the same migration that
|
|
109
|
+
// adds the column so nobody loses Facebook access on rollout.
|
|
110
|
+
Platforms: {
|
|
111
|
+
type: DataTypes.ARRAY(DataTypes.STRING),
|
|
112
|
+
allowNull: true,
|
|
113
|
+
defaultValue: ['fb'],
|
|
114
|
+
},
|
|
98
115
|
LastEntrance: {
|
|
99
116
|
type: DataTypes.DATE, // Array of organization IDs
|
|
100
117
|
allowNull: true,
|