{"id":16096113,"url":"https://github.com/frenchbread/dq-models","last_synced_at":"2025-04-05T20:27:59.906Z","repository":{"id":143749338,"uuid":"47138281","full_name":"frenchbread/dq-models","owner":"frenchbread","description":"DQ extension for models.","archived":false,"fork":false,"pushed_at":"2016-03-09T22:08:50.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T23:13:47.035Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frenchbread.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-30T18:37:35.000Z","updated_at":"2016-03-09T22:06:08.000Z","dependencies_parsed_at":"2023-04-03T17:47:36.709Z","dependency_job_id":null,"html_url":"https://github.com/frenchbread/dq-models","commit_stats":{"total_commits":40,"total_committers":1,"mean_commits":40.0,"dds":0.0,"last_synced_commit":"3370770be01d7655f1f7bf65887e1fc8e816c65a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Fdq-models","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Fdq-models/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Fdq-models/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Fdq-models/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frenchbread","download_url":"https://codeload.github.com/frenchbread/dq-models/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247396593,"owners_count":20932371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T17:10:47.886Z","updated_at":"2025-04-05T20:27:59.836Z","avatar_url":"https://github.com/frenchbread.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dq-models\n\nMongoose extension with schema handler.\n\n### Insalling manually:\n\n```\n$ npm i git+https://frenchbread:pass@github.com/frenchbread/dq-models.git\n```\n\n### Update geo db under its `node_modules`:\n\n```\n$ npm run-script updatedb\n```\n\n### Models available:\n\n1. `Account`\n2. `Article`\n3. `Project`\n4. `Watcher`\n5. `Task`\n6. `Hour`\n7. `Booking`\n\n\n```javascript\nvar M = require('dq-models');\n\nvar Account = M.model('Account');\n\nvar Article = M.model('Article');\n\nvar Project = M.model('Project');\n\nvar Watcher = M.model('Watcher');\n\nvar Task = M.model('Task');\n\nvar Hour = M.model('Hour');\n\nvar Booking = M.model('Booking');\n\n```\n\n### Init watcher\n\n```javascript\n// watcher\napp.use(function (req, res, next) {\n    \n    // If no authentication module provided, use:\n    req.isAuthenticated = function () {\n        return false;\n    };\n\n    Watcher.watch('project_name', req);\n    next();\n});\n```\n\n## License\n[MIT](https://github.com/frenchbread/dq-models/blob/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrenchbread%2Fdq-models","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrenchbread%2Fdq-models","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrenchbread%2Fdq-models/lists"}