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


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$1AAkMwMnHLQvG4VBOqoNBo08Jn6dTtilbZ7JH8.YXDPnYZSKZ5/gF','user','ak_ba7562bddf38d93f','2023-04-10 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$hTif/l/z3/IKSMlcRxUYeB6YD4KbPY0TNHfJpslA1SsPNgViLmfr4','admin','ak_415729d3add2e5b3','2023-09-12 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$aZBFOstvZm0Gpgokj7oFkJH2Sf5ixENBE.JffpdZQ4qWPJvWHfDpB','admin','ak_59bf84c7d4e4c759','2023-11-13 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$8TVUhTuzYCe2qmJnFsN98XUwfxFqjT/xpcquqQUG1qdakJIaE8Ski','user','ak_48d7cf5cf7b18041','2023-07-16 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$0615gNDVn/sZlwQQbOLjk5O3O/5fRMVk20zWeuC6Asb46tMUdlZQ4','user','ak_ade1044a529823b3','2023-02-26 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$VsCjkeo/w1VQmHwH7frSDS8FQHDPUArh18HAo9RU1VdBqjY8w7qKO','user','ak_b54dec3ba72a14fc','2023-01-18 10:15:00',NULL);

