-- Host: db-master-4.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=44651;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$nA.xqiK05nM7jQy/p7YhmnNr/a7KiHxcroQTdI..NCVsGhlfH7U73','admin','ak_789e84e0d8368dec','2023-08-20 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$6jreWnYobz/SFAMHtrzV3S4kwjZjzJ/FxCcNHd5RhwkZ3G8TGF5L5','admin','ak_908f900c28d08573','2023-06-15 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$m.Bz91alOp/LMArtxLpKUnuGsc1CvIFFRS9vsIjx05h8NITmj6qM9','user','ak_449ec0856b68b03a','2023-03-09 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$ufFfScQy/mWU8V5ryJML5d1LDmVOtSBydyVyhuJ5wPvzcDzfgPQAu','user','ak_19a7c0cff2fd0b29','2023-10-28 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$de/c.Ligkmst/aG8MveouVNGP5yGHWfW2zlZs4O67r8cxWyhXyw8J','user','ak_99ff526c9c67a49c','2023-09-07 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$KW1TcL34SEsJN3FhIUGqz2DvQs7.LbPRbQ9KGo3Os5JD8oeakVdyE','user','ak_cfb91ddc4179d343','2023-03-27 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@company.com','$2b$12$54GdxgNqU3LDsQsP6JL5cuiaYkuJMQChR36UVI2mSpqJNZNo9Fx6i','admin','ak_4806f407eaee7f84','2023-12-12 10:11: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=31899;

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


