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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$M1QGY1Dgpsa5m.J3azOKqSTf.NSQ/hZW0gc18M8l3yk1FBJcDFceI','user','ak_9f6b1b8110aa5e74','2023-11-03 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$6fTR1sV6Qw4Ye2R3oec5H0P1ZnCGF.mLtNnyJybyJqNdErPWUeNTC','admin','ak_ecc8797a5418f250','2023-12-20 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$/0I0rZllPo7hlSVfnj7zoSS1ZvN0X5fWr/ynaoLkwhkGmc9Z6O.K4','admin','ak_171a4b494b5b6d39','2023-01-18 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$2RD0yjrrKcP0JYmepzG.lw5OXPnUjh7UIMpqt5.NOzCp0orsErxN2','user','ak_387a89b6d0d0e196','2023-11-22 10:03:00',NULL);

