Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.packagetemplates.insertMany([
- {
- "title": "Суточная",
- "type": "DEFAULT",
- "categories": [],
- "manufacturers": [ObjectId("5ce645e78d17fa1f9a072ee0")],
- "schedule": {
- "duration": {
- "minimum": 1
- }
- },
- "features": {
- "rent": {
- "source": "REFERENCE_OBJECT"
- },
- "delivery": {
- "source": "CONFIG"
- },
- "washing": {
- "prices": [{
- "price": {
- "amount": 800,
- "currency": "RUB"
- }
- }]
- },
- "unlimitedMileage": {
- "included": false
- },
- "carReplace": {
- "filter": "ALL",
- "categories": [],
- "prices": [{
- "price": {
- "amount": 500,
- "currency": "RUB"
- }
- }]
- }
- },
- "sorting" : 1.0,
- "status" : "ACTIVE",
- "updatedAt" : new Date(),
- "createdAt" : new Date(),
- },
- {
- "title": "7 дней",
- "type": "CUSTOM",
- "categories": [],
- "manufacturers": [ObjectId("5c5be88c548cf75e2f5c9ed5"), ObjectId("5c5be88cf1a9a95d3b88681b")],
- "schedule": {
- "duration": {
- "minimum": 7,
- "maximum": 7
- }
- },
- "price": {
- "amount": 25000,
- "currency": "RUB"
- },
- "features": {
- "rent": {
- "source": "PACKAGE",
- "price": {
- "amount": 3500,
- "currency": "RUB"
- }
- },
- "delivery": {
- "source": "PACKAGE",
- "price": {
- "amount": 300,
- "currency": "RUB"
- }
- },
- "washing": {
- "prices": [{
- "limit": 1,
- "price": {
- "amount": 0,
- "currency": "RUB"
- }
- }, {
- "price": {
- "amount": 800,
- "currency": "RUB"
- }
- }]
- },
- "unlimitedMileage": {
- "included": true
- },
- "carReplace": {
- "filter": "ALL",
- "categories": [],
- "prices": [{
- "limit": 3,
- "price": {
- "amount": 0,
- "currency": "RUB"
- }
- }, {
- "price": {
- "amount": 500,
- "currency": "RUB"
- }
- }]
- }
- },
- "sorting" : 2.0,
- "status" : "ACTIVE",
- "updatedAt" : new Date(),
- "createdAt" : new Date(),
- },
- {
- "title": "7 дней без выгоды",
- "type": "CUSTOM",
- "categories": [],
- "manufacturers": [ObjectId("5c5be88c548cf75e2f5c9ed5"), ObjectId("5c5be88cf1a9a95d3b88681b")],
- "schedule": {
- "duration": {
- "minimum": 7,
- "maximum": 7
- }
- },
- "price": {
- "amount": 25000,
- "currency": "RUB"
- },
- "features": {
- "rent": {
- "source": "PACKAGE",
- "price": {
- "amount": 6000,
- "currency": "RUB"
- }
- },
- "delivery": {
- "source": "PACKAGE",
- "price": {
- "amount": 300,
- "currency": "RUB"
- }
- },
- "washing": {
- "prices": [{
- "price": {
- "amount": 0,
- "currency": "RUB"
- }
- }]
- },
- "unlimitedMileage": {
- "included": false
- },
- "carReplace": {
- "filter": "ALL",
- "categories": [],
- "prices": [{
- "price": {
- "amount": 0,
- "currency": "RUB"
- }
- }]
- }
- },
- "sorting" : 3.0,
- "status" : "ACTIVE",
- "updatedAt" : new Date(),
- "createdAt" : new Date(),
- },
- {
- "title": "7 дней без общей цены",
- "type": "CUSTOM",
- "categories": [],
- "manufacturers": [ObjectId("5c5be88c548cf75e2f5c9ed5"), ObjectId("5c5be88cf1a9a95d3b88681b")],
- "schedule": {
- "duration": {
- "minimum": 7,
- "maximum": 7
- }
- },
- "features": {
- "rent": {
- "source": "PACKAGE",
- "price": {
- "amount": 5500,
- "currency": "RUB"
- }
- },
- "delivery": {
- "source": "PACKAGE",
- "price": {
- "amount": 0,
- "currency": "RUB"
- }
- },
- "washing": {
- "prices": [{
- "price": {
- "amount": 800,
- "currency": "RUB"
- }
- }]
- },
- "unlimitedMileage": {
- "included": false
- },
- "carReplace": {
- "filter": "ALL",
- "categories": [],
- "prices": [{
- "price": {
- "amount": 500,
- "currency": "RUB"
- }
- }]
- }
- },
- "sorting" : 4.0,
- "status" : "ACTIVE",
- "updatedAt" : new Date(),
- "createdAt" : new Date(),
- },
- {
- "title": "30 дней для категории",
- "type": "CUSTOM",
- "categories": [ObjectId("5c8353df06ee4767f6513463"), ObjectId("5c8353df06ee4767f6555555")],
- "manufacturers": [],
- "schedule": {
- "duration": {
- "minimum": 30,
- "maximum": 30
- }
- },
- "price": {
- "amount": 100000,
- "currency": "RUB"
- },
- "features": {
- "rent": {
- "source": "PACKAGE",
- "price": {
- "amount": 1000,
- "currency": "RUB"
- }
- },
- "delivery": {
- "source": "PACKAGE",
- "price": {
- "amount": 300,
- "currency": "RUB"
- }
- },
- "washing": {
- "prices": [{
- "limit": 1,
- "price": {
- "amount": 0,
- "currency": "RUB"
- }
- }, {
- "price": {
- "amount": 800,
- "currency": "RUB"
- }
- }]
- },
- "unlimitedMileage": {
- "included": true
- },
- "carReplace": {
- "filter": "ALL",
- "categories": [],
- "prices": [{
- "limit": 3,
- "price": {
- "amount": 0,
- "currency": "RUB"
- }
- }, {
- "price": {
- "amount": 500,
- "currency": "RUB"
- }
- }]
- }
- },
- "sorting" : 5.0,
- "status" : "ACTIVE",
- "updatedAt" : new Date(),
- "createdAt" : new Date(),
- }
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement