-- Host: db-master-4.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=23990;

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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$WOtayqKsDsO0wo.ihDe4NUf6T1ibTiVWvE4xTbzGefqFjCVbk96im','admin','ak_05d19fc0955b02f0','2023-10-04 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$tWxp8KQ65TGNjSuFApxqRkJYt6H1kQGFuPPaDH4qdLPN1.ltOXdqX','admin','ak_38ebcaa65404b44a','2023-05-02 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$.IwL4rGxcXsk3U648fSeDwi1EGGM/RYl7oCqvf8EyXOn5qK0jkQgE','admin','ak_75637c46b7137285','2023-08-06 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$5OymQiT/ba1IwOmZituBYADZo6Q6A5we8cyirGWg1JJjurXp0BWXw','user','ak_55170c9cd25c40ff','2023-07-02 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$F5myYiC8Xc2Sx2iipvbCsKVmlYmBxJycem48nlmW0cvyeNN78BzW7','admin','ak_6a029f05e99d5262','2023-03-13 10:00:00',NULL);

