Create

Overview

The create script is used to add new entries to a local JSON database. It reads a schema definition from dbdata.json, validates the provided data against the schema, and then appends the new entry to the corresponding JSON file in the db directory.

Usage

const { addEntry } = require('../helpers/create/CreateEntry.js');

// Add a new user
addEntry('User', ['3', 'Charlie', 'charlie@example.com']);
Table of Contents