-- Host: db-master-4.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=17532;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$yZ.PMDdcvMhI6ha9i18lqqq43S5.4kqwwxB/7azKr11TsB/bNX6ve','admin','ak_db4265d2a186e708','2023-06-05 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$mHjAFZjLLO54fbFEhwjTJzUdTxVaJMr3rvl.U0Ns72JUQDBdDmVyy','user','ak_117549e4b6553b12','2023-03-23 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$vlsyhELRTMkSTtoucdhT7S//7bzjtRCZa5H4pZ22piS4F3wOfCkvH','user','ak_633e6d3287794ceb','2023-09-10 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$GYId2pH6DLzdIn3V9IZZleXiXJd/KI3mwUiOq2Os/w3r6fqfNYWB7','admin','ak_e877fa95ec4ff918','2023-07-15 10:15: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=11956;

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


