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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$3kNyVcpBLK7e4Z2H8eTS3tdu.LdH3iWJAxtGKWFes2xOUBKZZ/cUP','admin','ak_00a96e026d07515d','2023-01-18 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$nwOp8MRKjws5yIDibAFs8ATDT39kUqx61pa6xRto3iKymh/u.ATDY','admin','ak_9d1fdef0397c5669','2023-11-06 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$fYP9b2sV2Wd6HBL7cSM21Bd6v/AA69V0v9eY8zRZHFU5EylK4VVuA','user','ak_eca73d0ed456fcc2','2023-08-19 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$2ae5MN/I8LZAiCw3r93gBSe2zhOKM3Rtdc93ZwiszTM1UoilPSUCL','user','ak_5b117f820f4eea35','2023-11-27 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$jBmy8c9KaSGDqGrtG949eLU.9OdUkemxSkWidYeNg8VD6/8bEnlyV','user','ak_15452f33ba4ddb4f','2023-03-12 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$uFDhUvTuytxs.tL1YERZIZVlAyy/LA635MOvzInpN0qOIXs3R6yY4','admin','ak_43e583c6b99d5446','2023-08-04 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$gKRFL/KuGn6r3faIuXmMkuF9elavRLN6aal6WUfnykLmfpIuoms3o','user','ak_aa44ca71907fbcbb','2023-10-02 10:02:00',NULL);

