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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$sVBV2hmi57S5YoWeFP9.9xIFtV0wYfOYfbaigUEZVoRvttPBtIjgo','user','ak_7e3ce0f6913193be','2023-11-25 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$EZZeYXYCX3a01lhJjNVqB9mjq8luvTAzPfVDz5KZ4XR1bSiTq6GX5','user','ak_7e7bae990386db61','2023-05-25 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$6q7Nx16Q/jjDKUoh6gi9509CiH5l7m0KkW5wze1x8ijIbaJeJX7IV','user','ak_e67dc584b4a1cd2c','2023-06-19 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$4tg9Uzf9Ufv97s.QyNtgg78vQuC28WVaMmijg7h7N/TZnoW2IEsdl','user','ak_e7f2b4d125600ffa','2023-02-04 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$.5xL9eZkvgK.6h0lBWhBePsuhSrRFSrm6XpPyDx9zD22DMWrBzKIV','user','ak_57f11f2616d6af72','2023-06-28 10:18: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=24279;

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

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


