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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$1u9tOL.k2d6k9hmqIiAYiMbUqnCQmoNrRJCA5dYrSJpRIJ1pZLdt3','user','ak_52b36491c98fcb94','2023-12-26 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$BXpYfoHOafvL1U9pIjQG1nkcuhsO4uHMc7LnUtZ5j7G6h4DXPuGc/','user','ak_199f9c3d1c62aa41','2023-07-03 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$s9lRL/j2aGKpR5fmMzdI7w2tYbJ3yM0xNSuxJ.S9uwRjYINNl7zDg','user','ak_756fbf912ca89128','2023-08-13 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$hTTmPpJnXC5aRPwi.t9X8LGHId6smsNaX1jOSpLQTWOLrEy9qfAsV','admin','ak_acf4d87d760ce3a2','2023-10-19 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=25633;

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


