-- Host: db-master-6.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=50797;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$1d6P9As8W75twt7FY9rV/X5GtHBCgH9VgWAjGE1cEqCaBKzAF.Rha','user','ak_5b11b33b7c38fe73','2023-11-11 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$UmCURNfg7z4PWWZXR2U729N26/BvHIhPKJOqBObuQqtAGPxfGrB23','admin','ak_beadc9ee721fe6db','2023-12-21 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$8FSeu2bziisvJcm3PPYyu6GzFA0wD.irBpmeTWwldHsuEgy5lYxdr','user','ak_d5c2a61a444c7295','2023-05-16 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$35x0mtx4OoooMBrkbu370mTeW6fxunlKfLCcUSGZtjbB1Vf/64SQH','user','ak_e073a34c224d69f4','2023-07-15 10:13:00',NULL);

