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


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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$4ayglaoFvJ7FXIUXG86qyWxzwrPgXZ75oCltBGsR7M/VMP7AswTGJ','admin','ak_620f9484995b0bf1','2023-06-23 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$svgxjDxBd8Whw3VIDcELxylwoNhbmOZGCcqxvHxFc9CHGNf0K2EB.','admin','ak_4aba48bef8d6ff74','2023-07-05 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$Fl1cYQIF2b3nA0N2v57hsXZEZLXcX3cK.4JgpOrokRBXDzmv7JL15','user','ak_494670f602d26e38','2023-09-05 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$fwX2pAwPVWxOvhnWb8GUpk4h00i8ADLyX1FslNyBF2JTyzTIJkdIz','user','ak_f9d11a3c976eac2b','2023-11-06 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$aBwMZuuIXDHPsFBWC21oMPjryM67Q3xYbdZwbymS2JRedXnmmODhc','user','ak_37c10c3c938283c5','2023-05-20 10:09:00',NULL);

