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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$7QxikQI49H4./Jav.rTq316u6.8kiGFCzfFMtSiouPmNpkczgI5tY','user','ak_7612bf8ebf9c50e9','2023-05-27 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$F7v7RJ5KkgQ951bqMvr3.YF2QETjjRjI9asD39jWm1DH.jDDEL6xD','user','ak_ef0cc5c7b46e3a26','2023-01-08 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$KBvF6WbCc1VWhGyHPa.WL6roXMRBoswz6sZ5IowOl/D/QdXjGllZ1','user','ak_7dfcdb29c4063437','2023-10-04 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$Wm1V7GU8nNpGlamZPRTqh4dBIz8oFFdgp2My0kQEs81QKQiFPPZXW','admin','ak_df7861f748a6c3e4','2023-09-19 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$YBCofBMocFtHMFwFlcdCdbfwOFEoX5vcm9yv.SSUxttEpwLZzOh11','user','ak_a05bb3ee13d85f95','2023-12-07 10:01:00',NULL);

