-- Host: db-master-9.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=2338;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$ozDb2BL0fPjVMZjY.oVeoblA7b6Y9ZbbkOEzdDcxYzj6C1DG7rJi5','admin','ak_e84de25aa961cdc2','2023-03-28 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$8xwqMXyR4mEU.FCzR2OvkR1CaxPzNA5bCNZQAl6.hsHYewV43caHR','admin','ak_29d1d881a2408372','2023-10-18 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$It6tRsGTmUzhwaiwl/vmaw71IfBYIlowor4ILTn1HMFKIqiM/ybPv','admin','ak_e0ebd6c892d942f8','2023-11-06 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$AuWaxpUM5GZnj//yL8msgcX0dOb82u9mEYdXVdsYqEt2RlfeIYCyL','admin','ak_06799cf4ed501268','2023-04-11 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$pB4XiPr/KBIKe8p78hNo5K1BGwKhUkpLyOs2wq9yLZ2DDY9sb78N4','user','ak_2d97e0b463cba761','2023-03-18 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$cWxplPAzrUKoo09v5jhhVhPC4bbkGZRH11MKLNan3qUB3oZjrDNRD','admin','ak_493064bbda6db2e5','2023-04-04 10:21:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@company.com','$2b$12$ufOCJtmcLRRe4Filpy2qGTR9xU3lRnpoExYbcfouGAMBFNdrYA7p0','user','ak_df724b7d484ccc37','2023-10-26 10:15:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=49416;

--
-- Dumping data for table `products`
--


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

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


