ratings.js 285 B

123456
  1. export default {
  2. youtubeId: { type: String, min: 11, max: 11, required: true, index: true, unique: true },
  3. likes: { type: Number, default: 0, required: true },
  4. dislikes: { type: Number, default: 0, required: true },
  5. documentVersion: { type: Number, default: 1, required: true }
  6. };