-- Host: db-master-3.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$YIP6V/Q8syn3uCnck6cXFy9.loPT0EVjmW.uzhZdnDZR3IlMr2h6n','user','ak_258a45d9b1626555','2023-11-25 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$UrqUiHSynSD2aa6jP8Km7FeMd7zTDvMg46cMGjd/UWHPtj0ZPj1fX','admin','ak_5d41d0b3e245e2c2','2023-04-24 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$ypFbFr/BD9N4HtUHwX90HkypEuPKs1MlA3ClzaX0Y7wkGWXLooM16','admin','ak_0b16cbae917db71f','2023-05-05 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$GGuZ9/SqPbo0BQ5nUZ8Yf.XjfoRpQ8hID0Xui2gJNzUfKgTm/vBma','user','ak_cb1f878c22a040aa','2023-11-28 10:23:00',NULL);

