-- Host: db-master-0.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=26716;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$TebsJg8Ovhel7/Qb/xOyZeercIeHSeo4oV76Po3KAHN27VOnNV9U5','admin','ak_5e1f35be94b83cd2','2023-08-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$DxgOo8ZvQj41C1kynEwyxvJVIslia7O776G3V/Wlm6yVgGa2UkjGz','admin','ak_1b09a31514f0f534','2023-10-20 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$V52vY7dadPaxLeKGWJBwdpBePRYKkpQyF4qNLnbpWpkzvM390lUY4','user','ak_624ad7fd0ba41220','2023-11-20 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$GKJSnbmI7uXOje9jn7MM4skdw/DnGmdUxrCU.6He8TojSDoN90p2/','admin','ak_0d1d584e2d0cdab6','2023-02-22 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$ax1EjODjTx8QiMkIObm449tjDuh08JxqhZxaBwnjW2jNCfmQoInd2','admin','ak_7f627282cd4292e9','2023-03-16 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$oS9v9p2rG6fTtyeyqacVOBgmlq.vvOrJIcfcS57wFZSnIiXoryVIe','admin','ak_59bb2abc97512bfc','2023-05-19 10:20:00',NULL);

