picsart-booking-db-models
v1.0.1
Published
Chairs reservation in office
Downloads
7
Maintainers
Readme
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: '[email protected]',
team_id: 2,
is_admin: false,
invitation_token: 'dgyhdsncujndisd',
password: 'shgdfdkfdjk'
});