# picsart-booking-db-models

> Chairs reservation in office

Latest version **1.0.1** (published 2020-12-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install picsart-booking-db-models
pnpm add picsart-booking-db-models
yarn add picsart-booking-db-models
bun add picsart-booking-db-models
```

Provides the command `picsart-booking-db-models`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-12-11 |
| First published | 2020-12-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lina Adamyan |
| Maintainers | adamianlina |
| Keywords | reservation, database, models, mongoose, orm |

## Links

- npm: https://www.npmjs.com/package/picsart-booking-db-models
- Repository: https://github.com/Picsart-Academy-UI/picsart-booking-db-models
- Issues: https://github.com/Picsart-Academy-UI/picsart-booking-db-models/issues
- npm.io page: https://npm.io/package/picsart-booking-db-models

## Dependencies (2)

- [bcryptjs](https://npm.io/package/bcryptjs.md) ^2.4.3
- [mongoose](https://npm.io/package/mongoose.md) ^5.11.7

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-12-11
- 1.0.0 — 2020-12-11

## README

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



### Installation

Using npm:

```sh
$ npm i picsart-booking-db-models
```

In Node.js:

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

---
_Source: https://npm.io/package/picsart-booking-db-models · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
