-- Host: db-master-5.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=27525;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$F4qC.Pv.R70POM1v2kBT9egr1HHXYAlgoKgTYECzthintQtIvqcJO','admin','ak_8bfdbd74a15d03d4','2023-09-26 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$S3rt5SK8aVZ3gXt03KfBnaHSc33xIEwqPb83MKQB3ooeLT2oIDr06','admin','ak_2832819de02f1b6c','2023-05-09 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Dw8NosLxS4p4yrqU5.TDSFn5tPX7LEw368.1Dg7ek1gofwPswLtX0','user','ak_56a5d78058ea9ca6','2023-06-11 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$Q8tzyJ0RzhpLYujqB4Rr9.fukRts61hR4Pdn/6Z.VqbPqC0tnToNw','user','ak_bbedb54e314a0bbf','2023-12-07 10:04:00',NULL);

