-- Host: db-master-4.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=37419;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$fxuYA1Wg2KpqJkmN75MwYxaQr7/vKUtHH1dyuTUFeMKcLiyAwnj4q','admin','ak_3dc92330bd00ef40','2023-10-15 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$dPSISJCZbDlLyN0ymSJ60Lh8WldTeWsxRhA0ReI30jARud8PErHbd','admin','ak_46be62b6395e4430','2023-07-12 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$cyruYPrdCxJPTce9nX4QsOBzqqXB.gzehYK2JrPcFFROxAJ68mnad','user','ak_5cb55565965dc740','2023-12-19 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$z6TdEJgJdfBCDovGhqI5r1UEcogq7UNvlEHxOuZvJn3dJkWJ/1jiG','user','ak_9468967afe8304fd','2023-09-04 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=45712;

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


