-- Host: db-master-2.internal    Database: customers


--
-- 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=24175;

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


--
-- 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=28670;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$YLiz0wHwF3YBbXiC4fd0hYnt0gWBqkGsFAZJ.hdlRSwfUrJ5Yu7iy','user','ak_7938ff5d5abe0eb4','2023-02-25 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$ArNijzJbVEtB0Hm7HaU23pRrZiGgT3xTuxBtfFRlP7sMC12qCYL5E','user','ak_e370e29933ee8151','2023-10-20 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$NvV7ZChm0QtjiGecb4Uxpw7GT/XfXAdSv8tNpb7GMf4PMUGXo.T2y','admin','ak_6c5922faff696530','2023-04-05 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$LAPSztd414rH/xPr8npW/dHKJRUkriIvtQ9CqN3d4Y3aDMCXn4oKt','user','ak_db98d456923d0fa2','2023-08-19 10:00:00',NULL);

