-- Host: db-master-8.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=14122;

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$TV74uSUdIYCscNBarS0BNYkDX1QzJl8TNc3PNOmeMUhD4iyd2NQpW','admin','ak_fc8953465d4406dc','2023-04-21 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$PJWYOa8jh3M4fcTTw9.9guwc/Bl5JI1cepivIZKWqTmQ.qFeIZpcQ','user','ak_d4115c2e17e6ab56','2023-11-02 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$WUx5Bkm.UdLqUem..4kD8Z8fYox4x3wv.OIZHhy5XlVDcyKe9KTZg','admin','ak_3b6e5b9d6796f6f0','2023-10-27 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$sOcvNvf1dX40vzEyh3sYEJj5pkWXWg/hyjdx8G8ZK8TCKk6O8Yhab','admin','ak_27eb577e4378cea0','2023-03-10 10:11: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=30168;

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


