-- Host: db-master-2.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=27161;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$Mhc6h9Rx8doo39vkyj8AJ6PpGDSfMqXl/lUev7CiYEVvhFWDru5x3','user','ak_a9903218efefbdd6','2023-03-23 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$gm1b4.4trGRYJ6vrOWF3uwGIhVu7m33yLcLMxzN.4F3nBQnOOBqa4','admin','ak_00943e6ba6f2ec86','2023-10-10 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$pS3I3WftW6nKbplUnmq1b8D8WP7ajFHv1hi07sQBq0VeOp9Kx9.Wf','admin','ak_6584f6acab0ae9dd','2023-03-08 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$XUJ7WU013bUS.wuBjvF4KN424XIwrxNspRmvo7iwAQoKQi4rqWvgy','admin','ak_049aafd459ec2313','2023-08-06 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$Lv4IcX4epCDLLgLMvlJp/gLBOTgkYTHZxfCV3wOyljZtoPgTkbxoo','user','ak_7df52543e2e6e6c1','2023-07-03 10:09: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=33734;

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


