-- Host: db-master-6.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=24039;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$t4NZcNTmG.YrA/epMqNDFwBgv5/8Gab53ekT1XkKJp0UaSgljdsWG','admin','ak_12a111e0302fd2db','2023-10-05 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$79sGeqlDBBYOIH29SCelbk2ul2Id3JIjTTSLhGBQRt9NfzcPx9IxK','user','ak_287d2ee1a8df77d1','2023-10-20 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$c98Qlgmiyfq6fsYxQKM.ZLCumnw1eFszSVleIpyiN5Bo7EEwvCuKL','admin','ak_315025ab827515c0','2023-03-03 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$sZih1qUfn6A5E16O0SaprBPiSpXv3BQ4oR1PzT7FnYeakcUv/3PDZ','user','ak_ee3606f057d0f054','2023-10-09 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$9y3Ll0znIiyUNM1kMSRxHG/eCMs.rLQw9H99qmsWWqyoE9UNNTw/w','user','ak_ba11162ddde4c1a8','2023-12-28 10:08: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=21233;

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


