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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$QNXtvYSWdT8DfPhH7MAMFcKfMf8Yc0NJdrdqAFdAW2RDUxygZbnA6','admin','ak_9648225f2baba620','2023-10-04 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$0hlsS/XGLIH6cEy44aMbbEIuNbeq70j4z7wTCi1my1HkOMLowBJ5D','user','ak_2195f9648f6c1182','2023-07-19 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$VgkTTdMz1H/mG2wyyGRGBfLD1RbyhudAvoZwA21gK53qJidzEsNaH','user','ak_1727988590dd7036','2023-07-03 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$FJgkriwrHWPfpU1KPiYDzHas3B7AyRjigufLbtC5gFZEgslq30Ii5','admin','ak_7a321a45c86de695','2023-09-24 10:10:00',NULL);

