* Badges now have an optional permissions field

* New struct changes integrating badge system
This commit is contained in:
shockrah
2021-05-17 16:04:26 -07:00
parent 36dbc8dd1e
commit fc24ad3430
2 changed files with 13 additions and 1 deletions

View File

@@ -2,5 +2,6 @@ CREATE TABLE IF NOT EXISTS `badges`(
`id` INTEGER 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`)
);