-- Host: db-master-5.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=41625;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$aQXr/AF8GUBxZxXaYyid/UbnYTt3t36LirEmb0PYROEYgMHGcKCyA','user','ak_24dd5ed4ccfedd3e','2023-12-19 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$/bIhjGuURWJlfuiUyjug1ZHvlyhFiP6ToyoEJ2GPyEIOliINMTNkK','user','ak_8fd708db29944664','2023-07-22 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$VBWgsAHxramn39Pn0o00831MiD2MZQ6yXiSqJk8Hh82zFCnL/FCeo','user','ak_dfe1c37778f1d698','2023-05-04 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$LsZf/7rfmP0JUKDavk6j0bTa5RjS2NQghMMJ3dJQyiePJgfpLUmVr','user','ak_27f5ce0b2fdaf186','2023-04-07 10:21:00',NULL);

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=6263;

--
-- Dumping data for table `payments`
--


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

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


