-- Host: db-master-8.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$LVsx5X3dW5N1NXW773vytx9.3s7OarmnSLFbYOE1gorKtUwRa52C9','user','ak_7502126ff0866b0f','2023-07-02 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$XpB7jY/6GXFhTwkL4eqGHp0mdmInz3XVNPzrKtN.XgzE14JilqctM','user','ak_32d8d6adada51c88','2023-03-25 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$RpXd7M6YthmPFKHR4KBFi0KeDGzBAlKVUbttvmCeHCQ1QTj1q4oif','admin','ak_c4d90652b177b2b7','2023-08-21 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$/2k1dCW8hnzatdbLJwJaywrwtX3nacufA8LhhWD9dPYCwI0BwSTHz','admin','ak_e288c405eabac929','2023-12-15 10:02: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=44454;

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


