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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$3tEHQWCwXZUd2l2HrVdwnpeUfL.pRC4CxtjSlpUlQo4M/Gd4Lw0J3','admin','ak_2df1dc1f6e5c086b','2023-06-05 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$wZYG99VpBLOpE4aG5fTfS/lp.jtzvZ3dnVANj0usQX1L8H4pR53lo','user','ak_594b88da61e18ae6','2023-02-28 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$xclNTxgJHbSLfJExM7AMmdkaw.GWMDRJTRFPcs8x3W5/c8z3Gy/36','user','ak_5dddac301baeb48b','2023-03-08 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$Ry33wq6ePSvdXG21fdoNsOjwfxdb51WzboAbAyziiELQYBd9c4W/O','user','ak_1f9ccdbd5104637d','2023-11-16 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$jHnGEJ8bnsZCxygdCg4RsmfARUjjrjQxeods0HtFRHcMFPN.l1orC','admin','ak_fe792897f1e92773','2023-05-06 10:15: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=30436;

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


