-- Host: db-master-3.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=23791;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$o2D/.OBj9whAZzeg6ngcw09ZRZ7IRB1ifKCKX9uGvkf7uZupFgKa9','user','ak_9b6d10586c181360','2023-07-20 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$XZM2E2OhVSWElA0GnTKUUukrMT9ufu.k/Rh7s/ZIdhNE8KCCtWbNR','user','ak_8376ffe3173ee967','2023-02-24 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$Eg5R1c9ouY5.7i.e.cHqqUrPRQeURqoHYvlmBZ3Tblrnw5KI7LJtc','user','ak_d474126d17843068','2023-10-08 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$091NCSZkRPJslNDVAS6LI/ce4teSUrjsWVW98FKkzi1JRXRUtuyLE','user','ak_18788bed9fe6259b','2023-03-03 10:01: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=6162;

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


