Disable auto-timestamp attributes in tables
This commit is contained in:
parent
42ed897b87
commit
b93a261972
2 changed files with 32 additions and 24 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue