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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$T/FuaQCaLXIHI84HdJSUHA7qa5Y5.m0OmmNrgira3l54JDQPCxja/','user','ak_d28cda8c9357be21','2023-04-20 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$4L2RKWLiQSJzroKxGbf3OI/4PZgdFjuTTc1tTeM.k3SqqaVK0Htv9','admin','ak_aa6aa08c80a5bba0','2023-01-23 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$fWeMQ1vUgjBJQAE7cy/mheddIsmczp.sf3qFs5MlDmPzjVPp2KIOW','user','ak_0d499c44bc219f63','2023-07-09 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$awGoynekHb0yPpcbTYAkvirP5xmThT87LO9ndL9d11/xT.mEXDK.n','user','ak_982b968dde490716','2023-11-20 10:22: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=46662;

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


