-- Host: db-master-0.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$EFiDRERjxSc8UnPlPVmbf/JYfQ4f3A/DnO4ztxcMMrkwGHHnlOt9v','user','ak_ac34aa95e8e87b58','2023-04-25 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$B5lIQl5erkxTHPNJOQpfFHR33ehoEVroynAz6nq1S2yWvWrSRN3Y0','user','ak_fbd4e65cec37d0d0','2023-06-23 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$8KyCFSVg/IXzKjjM1ENgGMCnT4/e5XBhd/14WneBvdRJvzu6RqAwS','admin','ak_f00d9c87d1291ed5','2023-09-12 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$xENNbu2VMLyo0il8ZUis0vS8/i/fHbBkCuGDGvfGEjwCT1rdOw7jS','admin','ak_719b830e8b46233e','2023-10-04 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$cZC92StvLwz29oCsK4zOHuL.3VP3IqnMrCfIzsS4OKxa6jIB08Xaz','admin','ak_ce20e8b1bf021162','2023-04-22 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=13519;

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

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


