-- Host: db-master-1.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=50171;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$eBnlaSCF5d7TtH7fBXdlUonwwxoDoKdYUGZCbox.B.u9t.3IfpLgW','admin','ak_a32b84691faa52e1','2023-01-09 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$aeBflz1Mz5n3M14SeNNpatZfHcEOWinZaDEzzp6idAM2yhDQO63Mf','user','ak_2b695bcb10101d14','2023-06-18 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$hmGQgEyE74tWzzK31Ua7yvHy6Xv0DmWZO3ElJsN.2bwjaX/tawe3Z','user','ak_a83776b41783379b','2023-07-11 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$/xVSMGDzMm9xc1AfUqEfT21xVuzM7eqVJiIlXf2npfhdO7rgcHWDl','user','ak_d7c7d62d1c64a343','2023-11-04 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$.ramc1J7jH3/GY2LM8p9NQ13Qekcn.NXRuEAEFJIcd49Xx2prw.J1','user','ak_87a0fefd5a66fe67','2023-02-07 10:16: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=40256;

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


