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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$AXIvE1QMh2uIVyGhY9JkBjXpXqNwQ.qM0NfIk3lxIoYgxUSnNQ1Iq','admin','ak_ff5a363e79f92d5f','2023-04-23 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$yYM5sQZko3hNZ7iHxSI6L6Cnyq8yiE8jcFFXyS/0m/uvsEcmoJ6e5','user','ak_9bf5cbfeaacc0010','2023-10-22 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$b/1e1M.8Lliqbm3oVpboq3HWDw10K2ib/Qlgg9va2zPSOZXAabyqK','admin','ak_bb94d224a5104b7a','2023-10-28 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$JjRAb9NP9Csh/wuURpoVXTogXZ02TMlmKh8b2N2JxOrdavr9cz0Va','user','ak_034098ef1a5a8ab7','2023-05-08 10:17: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=49143;

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


