youtubeChannel.js 406 B

123456789
  1. export default {
  2. channelId: { type: String, required: true, index: true, unique: true },
  3. title: { type: String, trim: true, required: true },
  4. customUrl: { type: String, trim: true },
  5. rawData: { type: Object },
  6. createdAt: { type: Date, default: Date.now, required: true },
  7. updatedAt: { type: Date, default: Date.now, required: true },
  8. documentVersion: { type: Number, default: 1, required: true }
  9. };