-- Host: db-master-3.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$Or6K3dlG3OtlYSPemQljgzwqkEg403NTbNXqdJ0HhUQXIGjuW5jCZ','admin','ak_0d637b83637207f9','2023-08-05 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$s1gekPFJCyBnSv12dVSQxHIIOIhUQGXq7VHMp6ra/G39p.bZARvgJ','admin','ak_3b1370f3d1d42f70','2023-07-06 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$84elaUYsmoEsf0LbWRjWs2x5UIGIboEQXsW4KD6cpfVwYwUtJ3dsy','admin','ak_264ba363c9d53639','2023-08-03 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$MUdHGw.Z1raXGYLQUkS8yRSi4tuyokK9bIkXi13miw2DTYh1zhqeD','admin','ak_b6057103f2fc8828','2023-04-20 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$jCnalzHdwTkNBEA4E.cTX3x4uFYzcdDnBGYF0JOhLnfPoAuy4415n','user','ak_f30023c5def72054','2023-04-19 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$qMIAk1Qn9O30wVWi9pw7S4FW5Ix/u0VCA23W3CcJTPFTI56/61TaK','user','ak_0f4ad2939f4cd6cb','2023-04-17 10:19: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=38897;

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


