GCMod

Database

Database schema and migration notes for gcm_securezone.




Main table: gcm_securezone

sql
CREATE TABLE `gcm_securezone` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `label` varchar(50) NOT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'safezone',
  `points` longtext NOT NULL,
  `options` longtext NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

Column notes

ColumnMeaning
idNumeric primary key.
nameInternal unique slug-like zone name.
labelHuman-readable display name.
typesafezone or redzone.
pointsJSON array of polygon points (x,y,z).
optionsJSON object with zone behavior flags and whitelist settings.

Data integrity recommendations

  • Keep name stable after integrations depend on it.
  • Avoid manual SQL edits while server is running.
  • Validate JSON shape before bulk-importing zone rows.