picsart-booking-db-models

1.0.1 • Public • Published

Connection to the database and models of the PiсsArt chair booking system

Installation

Using npm:

$ npm i picsart-booking-db-models

In Node.js:

const { 
    dbConnection, 
    User, 
    Team,  
    Chair, 
    Reservation 
} = require('picsart-booking-db-models');

dbConnection(MONGO_URI);

// example create User
const user = new User({
    first_name: 'John',
    last_name: 'Adams',
    email: 'yourmail@gmail.com',
    team_id: 2,
    is_admin: false,
    invitation_token: 'dgyhdsncujndisd',
    password: 'shgdfdkfdjk'
});

Package Sidebar

Install

npm i picsart-booking-db-models

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

4.92 kB

Total Files

7

Last publish

Collaborators

  • adamianlina