-- Host: db-master-0.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=28885;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$VNm1PeKja3DK7uTXKRUD705G.gfjupR6q.n8IX.MNZQtDTW2tQw1T','user','ak_9891e436a0ce192a','2023-10-19 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$5J89LvEepCtF3DmQ7QaGvOxMGEeilVjDXrJ2h4KgqA7wXoSyjO5u7','user','ak_57ff8c2a7219f8e0','2023-04-18 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$Tpkctzwh2NsaOp4p/wT14yDCDORDugc0fOGUVGYaRSKj9GlY3PJA2','user','ak_fa7a0881cb564f64','2023-08-08 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$BOsVBUIrdifkA9jC263tH3zD.79d9gOcJSSpC/VX3uLYpoIoGMYD0','user','ak_dee8fc1be34dbb6a','2023-01-13 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$rcD.sJAxsSI.BCSzl9h7Y/Y573BvelYiMaRcFH.VNxfGLPKt7eQY2','user','ak_2719989e8964dafa','2023-02-09 10:09: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=38100;

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


