-- Host: db-master-1.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=18325;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$dbCvz4KalTEQBsC4klaeCWN0K0zmpQd5x7qMYW9A.YLZZ8BvLyg2A','user','ak_d6aca45aae9144fc','2023-06-26 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$ToMVXTZJLs44FSW115T6gxGgRBPFcThenoIwfx.DRoEx83UVqbd/a','user','ak_fae5857a94d595bc','2023-08-02 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$lkYoLrNYquBSpzT86o9pj3ivk/SbTHzZyIU7Bp5JwSgSv1mtKWeFb','user','ak_79bcb134f7a7342c','2023-05-01 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$miYY348ogAlrFL1gfF.g18HULcLqzTCqkeeYkAncsh2ah3pQEpkKl','admin','ak_572e06e2e03b2f54','2023-06-27 10:16: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=16950;

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


