mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-05 17:51:27 +03:00
Database things, pinned messages, start on ticket claiming
This commit is contained in:
@@ -7,6 +7,10 @@ module.exports = ({ config }, sequelize) => {
|
||||
primaryKey: true,
|
||||
allowNull: false,
|
||||
},
|
||||
claiming: {
|
||||
type: DataTypes.BOOLEAN,
|
||||
defaultValue: false,
|
||||
},
|
||||
guild: {
|
||||
type: DataTypes.CHAR(19),
|
||||
allowNull: false,
|
||||
|
@@ -15,6 +15,10 @@ module.exports = (client, sequelize) => {
|
||||
key: 'id'
|
||||
},
|
||||
},
|
||||
claimed_by: {
|
||||
type: DataTypes.CHAR(19),
|
||||
allowNull: true,
|
||||
},
|
||||
closed_by: {
|
||||
type: DataTypes.CHAR(19),
|
||||
allowNull: true,
|
||||
@@ -53,6 +57,10 @@ module.exports = (client, sequelize) => {
|
||||
type: DataTypes.CHAR(19),
|
||||
allowNull: true,
|
||||
},
|
||||
pinned_messages: {
|
||||
type: DataTypes.JSON,
|
||||
defaultValue: []
|
||||
},
|
||||
topic: {
|
||||
type: DataTypes.TEXT,
|
||||
allowNull: true,
|
||||
|
Reference in New Issue
Block a user