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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$InJY7do.Z9B2eqKbSEkuGNxb4tKzdizOuS6F56j612.paXuB3JGSo','user','ak_2e817d423eb33ea3','2023-10-14 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$ZwB1.7gPb1QX./dfC234.CrPiqmwnc7.dwX/IN8ZE/T2fVGcJl3yg','admin','ak_5b1d701d0b8e9077','2023-05-21 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$9BuHZvCRGZf5.tJ4r59noYp0pZv/VtGnf7DRN4X/8/wpKD4ZbQhPa','user','ak_29d24881e1401e81','2023-06-05 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$KCVI0g5u0DIXRPi81QKFK2BaM/r6A1vxgFra87inxqnrTcrdc1QO9','admin','ak_c8fc195295254aa0','2023-07-12 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$eAcIdQQROToYjHis7zzolW9cuG2cNXnYRza5z5AieItISl95imMLA','user','ak_d44ebfed92f2977b','2023-05-23 10:09: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=38811;

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


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

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


