full
This commit is contained in:
@@ -10,7 +10,7 @@ const exploreInteractionSchema = new mongoose.Schema({
|
||||
},
|
||||
targetType: {
|
||||
type: String,
|
||||
enum: ['post', 'profile', 'academy'],
|
||||
enum: ['post', 'profile', 'academy', 'shop_product', 'academy_course', 'billboard'],
|
||||
required: true
|
||||
},
|
||||
targetId: {
|
||||
@@ -24,7 +24,7 @@ const exploreInteractionSchema = new mongoose.Schema({
|
||||
},
|
||||
contentType: {
|
||||
type: String,
|
||||
enum: ['image', 'video', 'academy'],
|
||||
enum: ['image', 'video', 'academy', 'shop_product', 'billboard'],
|
||||
default: 'image'
|
||||
},
|
||||
action: {
|
||||
@@ -45,6 +45,24 @@ const exploreInteractionSchema = new mongoose.Schema({
|
||||
dwellMs: {
|
||||
type: Number,
|
||||
default: null
|
||||
},
|
||||
/**
|
||||
* Snapshot of the viewer's own profile province/city at view time (only when they've
|
||||
* set one and enabled show_location) — the only geography signal available without
|
||||
* IP-geolocation or live GPS capture, neither of which exists in this codebase. This
|
||||
* is "where the viewer is from", not "where they physically were when they viewed".
|
||||
*/
|
||||
viewerCountry: {
|
||||
type: Object,
|
||||
default: null
|
||||
},
|
||||
viewerProvince: {
|
||||
type: Object,
|
||||
default: null
|
||||
},
|
||||
viewerCity: {
|
||||
type: Object,
|
||||
default: null
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user