Package Exports
- pornhub-models
- pornhub-models/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pornhub-models) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pornhub-models
这是一个基于 Sequelize 的 MySQL ORM 数据模型包,适用于 pornhub 相关数据的管理。
安装
npm install pornhub-models
# 或者
pnpm add pornhub-models使用方法
const {
Video,
Comment,
Account,
ViewHistory,
VoteupLog,
} = require("pornhub-models");
// 例如:查询所有视频
Video.findAll().then((videos) => {
console.log(videos);
});数据库配置
请根据实际情况修改 db.js 中的数据库连接配置。
导出模型
- Video
- Comment
- Account
- ViewHistory
- VoteupLog
License
ISC