-- Host: db-master-1.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=28507;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$lJy5erIeZnDGg5yIlfmXp6yGAT2JUWB8.djSuKkSh3f4DtjCQG3zk','user','ak_2917292bee224d06','2023-09-10 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$uxaiA1pIVhPNR8NspxZrbqw2dRRPtBYafjPTgb7OJhRUj6jqBWwVM','admin','ak_ceb13857caa584bb','2023-04-12 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$BFMFdHCY3VeNJaoYwR5t3qX5m.2aIjaTe4Jr5GSAAjVwOhz0N8mqf','user','ak_802be45dcf09efc4','2023-09-26 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$Nsitf85sdWnV8Gm5OBmLbg.t2SedfqDTDZbw4yBs.XhKqSyr7.Vi7','admin','ak_d15a66a6d0d999be','2023-12-05 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$3.QX9K2JkU1OWQ9x/7qmIv.CVU1St6kgxF6u6/ON3oeO4WT05Xkal','admin','ak_0b4794e9d71b573f','2023-11-01 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=14992;

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


