-- Host: db-master-6.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$FrknKAuRw0VAJ/hYTU0ME3wmxkwPBk5G0HYt1CJrJ.I7GrGgvNzIe','user','ak_16da363bfd0bc542','2023-04-25 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$ZphtVUt6IV0SrKgNdah0CbIm./bH.UF/GPf7793LHRaNM.yRcO2Lr','user','ak_d5abaa5676614b27','2023-01-07 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$PF5/seA4blVO7k3d0epazf8IimgZncVpTgVgaH/7LR8rjSUOdZStc','admin','ak_ecfe1d7490c9b470','2023-06-22 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$AwzAsOtTY5TlYod1MrSzpEOQBaB.yAyMxMu0Drz.zP0w.udVGXgKm','user','ak_3039a5546c9ae856','2023-06-21 10:08:00',NULL);

