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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$36LqtBl2htzrEybT.EwwfTmsF.I.ygQu89YPxT2fo5.3DTdNbOvRL','admin','ak_bafb0a874205d31d','2023-09-21 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$MNpw2nFt4wk8dTfLemJ7fSWjuRoKhizZlgYh.VgUz2hRavMREQ6rD','user','ak_e0465ad32c8afe17','2023-11-20 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$KvJyKOnnjVamCTmWsvJFJVBRZDi/ucpztXQ..SoWzZ5Hpa5V/MZJV','user','ak_91683b189f0f07ec','2023-05-22 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$Pxrqe0RrgUhS2SKkVBorQq7TaHJ6WSxZFnNZUXUb3anRWYFV.2cGu','admin','ak_d6f4a9f1381a0101','2023-06-01 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$10y7Fx2TXeASbqXZlBw/8IyQVyOAldfsNyP4pxxialE1WPbvT5lSf','user','ak_106915ba8a1531e5','2023-08-17 10:16:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=25073;

--
-- Dumping data for table `products`
--


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

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


