1.0.1 • Published 3 years ago

picsart-booking-db-models v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

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'
});