-- Host: db-master-2.internal    Database: production_db


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=44155;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$lx.sCsHuexHnOxSoEUOAaLxo2OPa/9hvj69x0JHwEi5IrdOfRuEHO','user','ak_633c6f4bfba1cd7b','2023-01-10 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$d8YlfjDN7dm83veKV0d1tM3J1YlVhcTlEDa1BdNmNYpT1VVF3sfVG','admin','ak_d42d5bbdc5c0720b','2023-09-19 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$OC.PrIJHSB.zQJABLbYHwvysJnZr94iCEvcuF.MdOeEytkhgcWpew','user','ak_e23b536a5298591e','2023-04-04 10:23:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=6140;

--
-- Dumping data for table `audit_log`
--


