This commit is contained in:
payacom
2026-08-31 20:45:41 +03:30
parent fa9f23c61d
commit 3f416a7a60
367 changed files with 621895 additions and 6443 deletions

View File

@@ -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
}
})