fintalk-pkg 3.0.3 → 3.0.5
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/model/Customer.js +11 -2
- package/package.json +1 -1
package/model/Customer.js
CHANGED
|
@@ -32,6 +32,7 @@ var CustomerSchema = new Schema({
|
|
|
32
32
|
email: String,
|
|
33
33
|
cpf: String,
|
|
34
34
|
phoneNumber: String,
|
|
35
|
+
originPhoneNumberId: String,
|
|
35
36
|
birthDate: Date,
|
|
36
37
|
address: {
|
|
37
38
|
type: Object,
|
|
@@ -149,9 +150,17 @@ var CustomerSchema = new Schema({
|
|
|
149
150
|
locale: String,
|
|
150
151
|
postbackHeaders: Object,
|
|
151
152
|
postbackUrl: String,
|
|
153
|
+
createdAt: {
|
|
154
|
+
type: Date,
|
|
155
|
+
required: true
|
|
156
|
+
},
|
|
157
|
+
updatedAt: {
|
|
158
|
+
type: Date,
|
|
159
|
+
required: true
|
|
160
|
+
}
|
|
152
161
|
},
|
|
153
162
|
{
|
|
154
|
-
timestamps:
|
|
163
|
+
timestamps: false,
|
|
155
164
|
saveUnknown: ["postbackHeaders.**"]
|
|
156
165
|
});
|
|
157
166
|
|
|
@@ -159,4 +168,4 @@ var CustomerSchema = new Schema({
|
|
|
159
168
|
|
|
160
169
|
module.exports = dynamoose.model(`fintalk-orchestrator-${process.env.BOT}-customer`, CustomerSchema, {
|
|
161
170
|
create: false, waitForActive: false
|
|
162
|
-
});
|
|
171
|
+
});
|