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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$luNaFTv7KNEmURsuD9NoVVUphA7s7lINczRY52HjkUE1ll8mZbbOc','admin','ak_38d5dbc87a6015f4','2023-11-14 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$N831JtZASBgIqMDjzjQh6pMcUwFqzgq1wwwbLeG92NOUbrjlkMsdy','user','ak_6d91c5ec6ec1408b','2023-12-19 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$6lSL7Hasf4UW5USRhZPnFUsNpmQlQXrh9tCan27pt205OrbZZBMDB','user','ak_4d31672d2b3fd6b6','2023-04-13 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$LXCk7w1cu47.K.TJywNlVGgBhF8bEVxQ06Eazg78PDxoialQzlP.p','admin','ak_66b4d230d14a5b4a','2023-08-07 10:10:00',NULL);

