flykup_model_development 3.1.49 → 3.1.51

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.
@@ -6,21 +6,21 @@ import Seller from "./seller.model.js";
6
6
  // ------------------- User Schema -------------------
7
7
  const UserSchema = new mongoose.Schema(
8
8
  {
9
- // devices: [
10
- // {
11
- // deviceId: { type: String, required: true },
12
- // fcmToken: { type: String, required: true },
13
- // platform: {
14
- // type: String,
15
- // enum: ["web", "android", "ios", "mobile-web"],
16
- // required: true,
17
- // },
18
- // lastLogin: { type: Date, default: Date.now },
19
- // lastLogout: { type: Date },
20
- // isActive: { type: Boolean, default: true },
21
- // _id: false,
22
- // },
23
- // ],
9
+ devices: [
10
+ {
11
+ deviceId: { type: String, required: true },
12
+ fcmToken: { type: String, required: true },
13
+ platform: {
14
+ type: String,
15
+ enum: ["web", "android", "ios", "mobile-web"],
16
+ required: true,
17
+ },
18
+ lastLogin: { type: Date, default: Date.now },
19
+ lastLogout: { type: Date },
20
+ isActive: { type: Boolean, default: true },
21
+ _id: false,
22
+ },
23
+ ],
24
24
  devices: [
25
25
  {
26
26
  deviceId: { type: String, required: true },
@@ -37,6 +37,27 @@ const UserSchema = new mongoose.Schema(
37
37
  _id: false,
38
38
  },
39
39
  ],
40
+ // devices: [
41
+ // {
42
+ // deviceId: { type: String, required: true },
43
+ // // SNS for mobile apps
44
+ // snsEndpointArn: { type: String },
45
+ // fcmToken: { type: String },
46
+
47
+ // // Web Push for browsers
48
+ // webPushSubscription: { type: Object }, // Stores the PushSubscription object
49
+
50
+ // platform: {
51
+ // type: String,
52
+ // enum: ["web", "android", "ios", "mobile-web"],
53
+ // required: true,
54
+ // },
55
+ // lastLogin: { type: Date, default: Date.now },
56
+ // lastLogout: { type: Date },
57
+ // isActive: { type: Boolean, default: true },
58
+ // _id: false,
59
+ // },
60
+ // ],
40
61
  sellerInfo: { type: mongoose.Schema.Types.ObjectId, ref: "sellers" },
41
62
  dropshipperInfo: { type: mongoose.Schema.Types.ObjectId, ref: "dropshippers" },
42
63
  categories: { type: [String], default: [], maxLength: 100 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flykup_model_development",
3
- "version": "3.1.49",
3
+ "version": "3.1.51",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "private": false,