# @frenchbread/dq-models

> Models lib for dq

Latest version **0.2.1** (published 2016-03-09) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install @frenchbread/dq-models
pnpm add @frenchbread/dq-models
yarn add @frenchbread/dq-models
bun add @frenchbread/dq-models
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2016-03-09 |
| First published | 2015-12-08 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+7 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Damir Mustafin |
| Maintainers | frenchbread |
| Keywords | dq, models |

## Links

- npm: https://www.npmjs.com/package/@frenchbread/dq-models
- Repository: https://github.com/frenchbread/dq-models
- Homepage: https://github.com/frenchbread/dq-models#readme
- Issues: https://github.com/frenchbread/dq-models/issues
- npm.io page: https://npm.io/package/@frenchbread/dq-models

## Dependencies (4)

- [mongoose](https://npm.io/package/mongoose.md) ^4.2.10
- [geoip-lite](https://npm.io/package/geoip-lite.md) ^1.1.6
- [underscore](https://npm.io/package/underscore.md) ^1.8.3
- [passport-local-mongoose](https://npm.io/package/passport-local-mongoose.md) ^3.1.0

## Recent versions

- 0.2.1 (latest) — 2016-03-09
- 0.2.0 — 2016-03-09
- 0.1.8 — 2016-01-01
- 0.1.7 — 2015-12-28
- 0.1.6 — 2015-12-28
- 0.1.5 — 2015-12-28
- 0.1.4 — 2015-12-28
- 0.1.3 — 2015-12-28
- 0.1.2 — 2015-12-28
- 0.1.1 — 2015-12-28
- 0.1.0 — 2015-12-08
- 0.0.10 — 2015-12-08
- 0.0.9 — 2015-12-08
- 0.0.8 — 2015-12-08
- 0.0.7 — 2015-12-08
- … 1 more at https://npm.io/package/@frenchbread/dq-models/versions

## README

# dq-models

Mongoose extension with schema handler.

### Insalling manually:

```
$ npm i git+https://frenchbread:pass@github.com/frenchbread/dq-models.git
```

### Update geo db under its `node_modules`:

```
$ npm run-script updatedb
```

### Models available:

1. `Account`
2. `Article`
3. `Project`
4. `Watcher`
5. `Task`
6. `Hour`
7. `Booking`


```javascript
var M = require('dq-models');

var Account = M.model('Account');

var Article = M.model('Article');

var Project = M.model('Project');

var Watcher = M.model('Watcher');

var Task = M.model('Task');

var Hour = M.model('Hour');

var Booking = M.model('Booking');

```

### Init watcher

```javascript
// watcher
app.use(function (req, res, next) {
    
    // If no authentication module provided, use:
    req.isAuthenticated = function () {
        return false;
    };

    Watcher.watch('project_name', req);
    next();
});
```
-
> Coded by DM.

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