const mongoose = require('mongoose');

const Trip = mongoose.model('Trip', new mongoose.Schema({
  agency_key: {
    type: String,
    required: true,
    index: true
  },
  route_id: {
    type: String,
    required: true,
    index: true
  },
  service_id: {
    type: String,
    required: true,
    index: true
  },
  trip_id: {
    type: String,
    required: true
  },
  trip_headsign: String,
  trip_short_name: String,
  direction_id: {
    type: Number,
    index: true,
    min: 0,
    max: 1
  },
  block_id: String,
  shape_id: String,
  wheelchair_accessible: {
    type: Number,
    min: 0,
    max: 2
  },
  bikes_allowed: {
    type: Number,
    min: 0,
    max: 2
  }
}));

module.exports = Trip;

@@ -364,24 +364,85 @@
 : true%0A  %7D,%0A
+  realtime_trip_id: %7B%0A    type: String,%0A    index: true%0A  %7D,%0A
   trip_heads

Create trip.js