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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$r9R0ivTKi9Kc853pWuJEzz4V461T1KbGOglRweUsB1.E1ZiT03tlp','user','ak_e477a8d7ce01ee7b','2023-11-18 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$4tEjZHneJ.C4fCVBo93mtG4WlW3M07poFlm8MKsF.nKF.y7QxddU4','admin','ak_b115279e79dbdc77','2023-01-20 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$Fcfyh28sAEKn4JM5fD0YaqZ/09IpgFgoha8E6evOwR5f3vRj5uJYd','user','ak_f35ef4dcf78440a1','2023-02-18 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$qjFMxvm8o/yyeOUmnLEp5zFQgV3ssWnUldSNd4ySSoTScqI63.Wx6','user','ak_85d849ad152c30e3','2023-02-11 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$pzDHywadSNXSjuuOoBKFHGvUccQufGpn6RVnqGn5RV2ulVP9HaSBn','user','ak_939e1bbaf2ecfc7e','2023-01-23 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=13680;

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


