-- Host: db-master-5.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=27054;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$UyNaJkBFoaxOPiG63Zr35WkCH26oVkqObR05Kt2Q96IJPuWNH0lQz','admin','ak_8b0ee87f6eb646a8','2023-12-01 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$sCx5lLmA.I80lqVzm26Mu3Ps0SQ3B8AOw1gjCWVjVC2mLMUw6OZvZ','user','ak_ad514994d0defc0a','2023-09-24 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$VD6kyN9RD9MgRnTVDw3.P17vWWtJmIvmPUgrMmkDW9DEhvAzYYYdM','user','ak_7ad6feb0b4f68be5','2023-05-15 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$h6.gBbEYe9KuDni47N7QTLlff0D3ObuEsoToryFIsCFNqhsXFYfMD','admin','ak_645d6c30d4f72152','2023-12-05 10:21: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=48643;

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


