20180119214651_create_audit_log_entries.up.sql 345 B

12345678
  1. CREATE TABLE IF NOT EXISTS `{{ index .Options "Namespace" }}audit_log_entries` (
  2. `instance_id` varchar(255) DEFAULT NULL,
  3. `id` varchar(255) NOT NULL,
  4. `payload` JSON NULL DEFAULT NULL,
  5. `created_at` timestamp NULL DEFAULT NULL,
  6. PRIMARY KEY (`id`),
  7. KEY `audit_logs_instance_id_idx` (`instance_id`)
  8. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;