Disable auto-timestamp attributes in tables

This commit is contained in:
Sudo Space 2024-08-31 21:22:36 +03:30
parent 42ed897b87
commit b93a261972
2 changed files with 32 additions and 24 deletions

View file

@ -2,7 +2,9 @@ import { DataTypes } from "sequelize";
import database from "database"; import database from "database";
const Archive = database.define("Archive", { const Archive = database.define(
"Archive",
{
msgId: { msgId: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
primaryKey: true, primaryKey: true,
@ -20,6 +22,8 @@ const Archive = database.define("Archive", {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
allowNull: false, allowNull: false,
}, },
}); },
{ timestamps: false }
);
export default Archive; export default Archive;

View file

@ -2,12 +2,16 @@ import { DataTypes } from "sequelize";
import database from "database"; import database from "database";
const BlockList = database.define("BlockList", { const BlockList = database.define(
"BlockList",
{
senderId: { senderId: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
primaryKey: true, primaryKey: true,
allowNull: false, allowNull: false,
}, },
}); },
{ timestamps: false }
);
export default BlockList; export default BlockList;