Initial commit

This commit is contained in:
payacom
2026-07-08 21:01:30 +03:30
parent 59c7c8e11c
commit 0b01b262fa
38 changed files with 1415 additions and 288 deletions

View File

@@ -25,7 +25,8 @@ const commentSchema = new mongoose.Schema({
},
rating: {
type: Number,
required: true
required: false,
default: null
},
comment: {
type: String,

View File

@@ -43,6 +43,21 @@ const messageSchema = new Schema({
readStatus: {
type: Number,
default: 0
},
/** Auto-delete after this time (self-destruct messages) */
expiresAt: {
type: Date,
required: false,
index: true
},
/** View-once photo / video / voice */
viewOnce: {
type: Boolean,
default: false
},
viewOnceOpenedAt: {
type: Date,
required: false
}
})

View File

@@ -16,6 +16,11 @@ const userSchema = new mongoose.Schema({
maxLength: 6,
default: null
},
otpSentAt: {
type: Date,
required: false,
default: null
},
user_name: {
type: String,
required: false,
@@ -312,6 +317,11 @@ const userSchema = new mongoose.Schema({
required: false,
default: null
},
blocked_until: {
type: Date,
required: false,
default: null
},
advertising_profiles: [{
type: mongoose.Schema.Types.ObjectId,
ref: 'AdvertisingProfile'