
This makes the parameter follow the naming convention of badge_* * badges.id field now uses BIGINT's as intended * Typo in sql where 'badges' was incorrectly set to 'perms' -_-
8 lines
307 B
SQL
8 lines
307 B
SQL
CREATE TABLE IF NOT EXISTS `badges`(
|
|
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
`name` VARCHAR(256) NOT NULL,
|
|
`color` INTEGER UNSIGNED NOT NULL DEFAULT 0xFFFFFFFF,
|
|
`permissions` INTEGER UNSIGNED, -- nullable because this isn't logically applicable to every badge
|
|
PRIMARY KEY(`id`)
|
|
);
|