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


--
-- 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=32215;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$E.4.5E5bf39MiqaQ2K6hLTjZHEqrPL6U7lFU.yA4B5yg483ICbNZo','admin','ak_cec3ed86183f7613','2023-09-15 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$ZA18gQjqQNi02dACdsoZzfR.0x195jqbEJjeJedGJnKuJTxr2Rque','user','ak_0ef10023f705e630','2023-06-11 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$y9rD1SbjTTKLPGSewp9GE0PPqoLLS/yDyg70F0B4AFmDeIV3yfLKo','user','ak_19e1a140572fd406','2023-01-08 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$gBzlCcO/Wsf4IxwDCWh23qt0tfLiDRCvKiebYO4hr/oY6iX/bzirY','admin','ak_978c597bfabac13e','2023-01-14 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$07ljuAs3bp17fosCW8dHq9vrMBOjIcHIsAJAZWienlcDcA.bcaSmy','user','ak_b1b7c170b96c165b','2023-03-12 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$wMnE2O85ZFzI5LWGXeRUjvKW2l1sln2FRxLEYc.hhOL.sw4hXKwzn','user','ak_e60369c9e4db9c55','2023-12-04 10:15: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=18069;

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


