db = {
const the_db = lyra.create({
schema: {
id: 'string',
adult: 'boolean',
backdrop_path: 'string',
belongs_to_collection: 'string',
budget: 'number',
genres: [{ id: 'number', name: 'string', }],
homepage: 'string',
imdb_id: 'string',
original_language: 'string',
original_title: 'string',
overview: 'string',
popularity: 'number',
poster_path: 'string',
production_companies: [{ id: 'number', logo_path: 'string', name: 'string', origin_country: 'string',}],
production_countries: [{ iso_3166_1: 'string', name: 'string', }],
release_date: 'string',
revenue: 'number',
runtime: 'number',
spoken_languages: [{ english_name: 'string', iso_639_1: 'string', name: 'string', }],
status: 'string',
tagline:'string',
title: 'string',
video: 'boolean',
vote_average: 'number',
vote_count: 'number',
_createdOn: 'string',
},
});
await lyra.insertBatch(the_db,bMovies)
return the_db
}