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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$z.iPxfijj65r6otV523YiiN54GnZsrCzWBOcRcx9RVEajEOe9j6fB','user','ak_95e7b68a32e81d82','2023-11-26 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$3.f3T7E2OMRvcPJj/pnrKpcigCUbuWqs3nwfdzi8ghOMrQO67L0PF','user','ak_c85e63e94395b252','2023-10-05 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$k7xiLGCCfJ1H2t7sL6zRF1XCGd0OOBPBOyQM0BTxTPpKJMPJT.Kbv','user','ak_83ab966331b2452b','2023-12-22 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$TMYoeadjJR1r5PqvoPFX3jrVPcquVzZ83Av9.VrDXxwKCqu8YAOZ.','admin','ak_444092ec8529c9fa','2023-11-20 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$TtY0nQ8BWU.NdUDs2lgDGinm3aB3We0/zaYlFRFwfYFmU0PxqCzvT','user','ak_5164236e7caa62cb','2023-08-17 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$5m8J7f5HVR2DsBsfH8juhORne8k5hx62yvgATNX2RYtb56tC6UhNM','user','ak_b5a3fbd881e2a2d9','2023-07-19 10:22:00',NULL);

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

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


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

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


