-- Host: db-master-1.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=6091;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$.exTOlkwtp1Oa4o3GfZ2QuYD6c4Jko7.VZWWZ/6ESlRl5xIk3R/Tr','admin','ak_6ed315d041d1e06d','2023-07-21 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$6kBt4G39PUKDeN9xlOPqsxHUhjbVLqYmgxK2L0nFCYFdZT36VmZYH','admin','ak_9180965c99f61efe','2023-11-25 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$ofReF8Y6NOuME/zNweeOQk949ZgmQ8r/thhLrf4Tt.EUUcqPCIb2O','user','ak_98191348269b1875','2023-04-08 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$jIX7LiMd6MRa5wqJCrgEQDHJKjh7Fiv853N.g0g1Jus9mYnMws3yS','admin','ak_3f011364802dc1ef','2023-01-10 10:06:00',NULL);

