-- Host: db-master-2.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$5wZj5e8CY3rDrV8L02YcCUxx0lb.8FKjHij/ZJwIMTEgpnd2qlQcS','user','ak_251deca96ca1bc94','2023-01-19 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$10qgfguurk3PsWwMBD8p0v/krGtNG0eqeroAK5nPgXdMkKDnexiRL','user','ak_ed9d29e854d58907','2023-02-02 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$Yiq85.HEgFowKnlGezMk9J2J8AhafKihcHbIpiHro/atWnNi6FLx5','admin','ak_ffcb3eeb872cea6d','2023-10-27 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$4/QVKAokCXpxLsVGLdV89CYDWV/zIYSSJ77qt17Yt/vZSt3c79oQE','user','ak_e0489f5a693f9d3f','2023-07-09 10:14:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=45162;

--
-- Dumping data for table `products`
--


