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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=20473;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$0XQLZOH/BQQYBxn3LmemYriTGRTv52Z891vcAiiYdN/cRAe6Jkd4M','user','ak_fa684b172fbad572','2023-01-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$guBDlsg7Sk8phKWR5KKVazM2u7NHolytyZjTYL0B0c7042lhRJMwI','user','ak_79b74216b3bd2ae6','2023-09-04 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$.uHl5vwZ.yvDg/zyVFDlI1hkZnYM9M9.c4.4JkggZtSTjp3thSLPy','admin','ak_c050c6ddc57e4e95','2023-07-08 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$uabcaBx31ZCKaX8m.51htOze3es2tb7FwWv.4BkMxJG9vA9x9Yad.','admin','ak_d26a080c7789de85','2023-11-08 10:05:00',NULL);

