-- Host: db-master-0.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=34357;

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$eFIXci5axx.7kR8qPy3nRulmZrN2AcTaeQe2HAhAw7EzxYlJd0MU4','user','ak_d81fce9891813d0e','2023-07-27 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$7JZJgOIh7SxznskMMY16D.ru2WGrEetp14mQSOdXrkWA0iq4oPykv','user','ak_beef0b3f66324427','2023-07-07 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$8hCpR2ytmlZI1Ex.TkjFCyp3XZAE0JsBzkCr7JAxIuYTI00I.Rhk8','user','ak_4f7e0002ce6b05d9','2023-04-03 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$Y0dKKpo2W5fvYavwWB6HXestdcQAYQz2WG5aOO56zAA/CYwLVvLcu','user','ak_b45556cf88abd2a9','2023-01-20 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$5WLOFYb9PAr/l2BOZWoVmR.qnyDyDCjAzSracuADpuj4sqlLpmMQc','admin','ak_5316801308f043a8','2023-01-16 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$ni.kwa0yIJvi1y0KlMey9F2mPIwxdpH3yQY7IWWfB1ZVA9NLGNUf0','user','ak_dd645cfa3fe2a36c','2023-08-17 10:04: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=25552;

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


