@dongdev/fca-unofficial
Version:
A Facebook chat API without XMPP, will not be deprecated after April 30th, 2015.
31 lines (29 loc) • 609 B
JavaScript
module.exports = function(sequelize) {
const { Model, DataTypes } = require("sequelize");
class Thread extends Model {}
Thread.init(
{
num: {
type: DataTypes.INTEGER,
allowNull: false,
autoIncrement: true,
primaryKey: true,
},
threadID: {
type: DataTypes.STRING,
allowNull: false,
unique: true,
},
data: {
type: DataTypes.JSONB,
allowNull: true,
}
},
{
sequelize,
modelName: "Thread",
timestamps: true,
}
);
return Thread;
};