/*
 * CS3283/4 storage.js
 * This is a facade class for other components
 */


/**
 *
 *  CS3283/4 storage.js
 *  This class acts as a facade for other developers to access to the database.
 *  The implementation is a non-SQL local storage to support the WebApp.
 *
 */

const entitiesCreator = require('./create/entitiesCreator');

class Storage {
  static constructor() {}

  static initializeDatabase() {
    entitiesCreator.createUserTable();
    entitiesCreator.createOrganizationTable();
    entitiesCreator.createFolderTable();
    entitiesCreator.createFileManagerTable();
    entitiesCreator.clearDatabase();
  }
}

Storage.initializeDatabase();

Add initializeDatabase function facade class
Add initializeDatabase function facade class
