Answer the question
In order to leave comments, you need to log in
How to convert sequalize option to plain sql?
Hello. There are sequalize queries, but you need to translate them into simple sql queries in order to manually insert them into phpmyadmin. How to do it? Are there converters online? (Google did not find).
Id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true,
},
uid: DataTypes.INTEGER,
message: DataTypes.TEXT,
time: DataTypes.DATE,
is_coupon: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: false,
},
is_ban: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: false,
},
}, {
timestamps: false,
name: { singular: "message", plural: "chat" },
tableName: "chat",
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question