Download database/models/sqlite/thread.js from bot512/5121512: direct link, hf CLI and curl.
- Browser
- Download file 787 Bytes
-
https://huggingface.co/spaces/bot512/5121512/resolve/main/database/models/sqlite/thread.js
- Command line
-
hf download hf://spaces/bot512/5121512/database/models/sqlite/thread.js
-
curl -L -o thread.js https://huggingface.co/spaces/bot512/5121512/resolve/main/database/models/sqlite/thread.js
787 Bytes
| module.exports = function (sequelize) { | |
| const { Model, DataTypes } = require("sequelize"); | |
| class threadModel extends Model { } | |
| threadModel.init({ | |
| threadID: { | |
| type: DataTypes.STRING, | |
| primaryKey: true | |
| }, | |
| threadName: DataTypes.STRING, | |
| threadThemeID: DataTypes.STRING, | |
| emoji: DataTypes.STRING, | |
| adminIDs: { | |
| type: DataTypes.JSON, | |
| defaultValue: [] | |
| }, | |
| imageSrc: DataTypes.STRING, | |
| approvalMode: DataTypes.BOOLEAN, | |
| members: { | |
| type: DataTypes.JSON, | |
| defaultValue: [] | |
| }, | |
| banned: { | |
| type: DataTypes.JSON, | |
| defaultValue: {} | |
| }, | |
| settings: { | |
| type: DataTypes.JSON, | |
| defaultValue: {} | |
| }, | |
| data: { | |
| type: DataTypes.JSON, | |
| defaultValue: {} | |
| }, | |
| isGroup: DataTypes.BOOLEAN | |
| }, { | |
| sequelize, | |
| modelName: "threads" | |
| }); | |
| return threadModel; | |
| }; |