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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$vKVuwdntrpLttMxN2VRX/B.HPNK3vygLJJoHsLqf3sGH4ihWI/tIQ','admin','ak_21e3a7b961ebde57','2023-01-24 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$fUUct.XBuHUtlbdsO/JCMwLVlw7RNg.iaEKNIjjTPDtAkqkCKKTOb','admin','ak_5da1a6786cd454b2','2023-10-17 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$GrAb8HZPPMzGQ6ZV0hU.RKyydV0VJwAghHNRYSDTwlRqfOevxA68S','user','ak_f37f06093e0b2fe2','2023-04-18 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$NDd7m41ZxjF6r.CUVyWFRDla/gKZQ1vDoddxkf9I8SUeKpBw26JVl','user','ak_d08b4d870f5c6a0a','2023-09-26 10:08: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=25312;

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


