+ Badges introduction to database schemas

+ Adding some default empty list values where applicable
neighbors now has a default value of '[]' to enforce the "empty list" constraint on that field
This commit is contained in:
shockrah
2021-05-17 15:50:53 -07:00
parent e5e0875037
commit 36dbc8dd1e
5 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1 @@
DROP TABLE IF EXISTS `badges`;

View File

@@ -0,0 +1,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,
PRIMARY KEY(`id`)
);