mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-02 16:41:25 +03:00
Update database models and improve settings command's permissions
This commit is contained in:
@@ -104,7 +104,7 @@ module.exports = async (log) => {
|
||||
unique: 'name_guild'
|
||||
},
|
||||
guild: {
|
||||
type: DataTypes.STRING,
|
||||
type: DataTypes.CHAR(18),
|
||||
allowNull: false,
|
||||
references: {
|
||||
model: Guild,
|
||||
@@ -131,7 +131,7 @@ module.exports = async (log) => {
|
||||
allowNull: false,
|
||||
},
|
||||
guild: {
|
||||
type: DataTypes.STRING,
|
||||
type: DataTypes.CHAR(18),
|
||||
allowNull: false,
|
||||
references: {
|
||||
model: Guild,
|
||||
@@ -139,13 +139,17 @@ module.exports = async (log) => {
|
||||
},
|
||||
},
|
||||
category: {
|
||||
type: DataTypes.STRING,
|
||||
type: DataTypes.CHAR(18),
|
||||
allowNull: false,
|
||||
references: {
|
||||
model: Category,
|
||||
key: 'id'
|
||||
},
|
||||
},
|
||||
creator: {
|
||||
type: DataTypes.CHAR(18),
|
||||
allowNull: false,
|
||||
},
|
||||
}, {
|
||||
tableName: DB_TABLE_PREFIX + 'tickets'
|
||||
});
|
||||
@@ -158,7 +162,7 @@ module.exports = async (log) => {
|
||||
allowNull: false,
|
||||
},
|
||||
ticket: {
|
||||
type: DataTypes.STRING,
|
||||
type: DataTypes.CHAR(18),
|
||||
allowNull: false,
|
||||
references: {
|
||||
model: Ticket,
|
||||
@@ -192,7 +196,7 @@ module.exports = async (log) => {
|
||||
unique: 'id_ticket'
|
||||
},
|
||||
ticket: {
|
||||
type: DataTypes.STRING,
|
||||
type: DataTypes.CHAR(18),
|
||||
allowNull: false,
|
||||
unique: 'id_ticket',
|
||||
references: {
|
||||
@@ -218,7 +222,7 @@ module.exports = async (log) => {
|
||||
unique: 'id_ticket'
|
||||
},
|
||||
ticket: {
|
||||
type: DataTypes.STRING,
|
||||
type: DataTypes.CHAR(18),
|
||||
allowNull: false,
|
||||
unique: 'id_ticket',
|
||||
references: {
|
||||
@@ -239,7 +243,7 @@ module.exports = async (log) => {
|
||||
unique: 'id_ticket'
|
||||
},
|
||||
ticket: {
|
||||
type: DataTypes.STRING,
|
||||
type: DataTypes.CHAR(18),
|
||||
allowNull: false,
|
||||
unique: 'id_ticket',
|
||||
references: {
|
||||
|
Reference in New Issue
Block a user