Spaces:
Sleeping
Sleeping
Tristan Yu commited on
Commit ·
f035952
1
Parent(s): 7f79405
Update SourceText model to support video subtitling segments
Browse files- models/SourceText.js +16 -1
models/SourceText.js
CHANGED
|
@@ -39,7 +39,22 @@ const sourceTextSchema = new mongoose.Schema({
|
|
| 39 |
isActive: { type: Boolean, default: true },
|
| 40 |
usageCount: { type: Number, default: 0 },
|
| 41 |
averageRating: { type: Number, default: 0 },
|
| 42 |
-
ratingCount: { type: Number, default: 0 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
}, {
|
| 44 |
timestamps: true
|
| 45 |
});
|
|
|
|
| 39 |
isActive: { type: Boolean, default: true },
|
| 40 |
usageCount: { type: Number, default: 0 },
|
| 41 |
averageRating: { type: Number, default: 0 },
|
| 42 |
+
ratingCount: { type: Number, default: 0 },
|
| 43 |
+
|
| 44 |
+
// Video subtitling specific fields
|
| 45 |
+
interfaceType: { type: String, enum: ['standard', 'video-subtitling'] },
|
| 46 |
+
videoSource: { type: String },
|
| 47 |
+
totalSegments: { type: Number },
|
| 48 |
+
segmentId: { type: Number },
|
| 49 |
+
startTime: { type: String },
|
| 50 |
+
endTime: { type: String },
|
| 51 |
+
duration: { type: String },
|
| 52 |
+
isCurrent: { type: Boolean, default: false },
|
| 53 |
+
parentTask: { type: String },
|
| 54 |
+
|
| 55 |
+
// Configuration fields
|
| 56 |
+
configType: { type: String },
|
| 57 |
+
description: { type: String }
|
| 58 |
}, {
|
| 59 |
timestamps: true
|
| 60 |
});
|