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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$Nnd1ltOgdZQX/n8ScKZqaCY7FhibwrdRVaPNyfjJu5na.UNCOcrnY','admin','ak_d9c27d37b5ce23a2','2023-05-10 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$tSUYPUUWnBe6XuWF0TcDHAqPZlt/LuE85/fQq0HUH.MYPtF54oHTC','user','ak_ee4634ef161103ed','2023-10-07 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$saP0CwhhbPwVJr6e7yHS0xUNFKIII3q4YbwpxUsdCYKlrAlZTk7pz','user','ak_354bc8488e17dbf1','2023-07-22 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$9Q7gStIefHvTfglMa9ZQm5...JY1C0X4EZXx1yzSy8gA7ji5ngPhL','user','ak_63a58cd45fb5a5b6','2023-07-25 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$UKGPfFkWmmi7yO/BqgEmqzNSpJfUNb9fK/QkqxW3e/FCNcHUBEs31','user','ak_9160158739a40088','2023-07-23 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$9mpe1St0a1rXur.lV18.ivboZQ78kcjK0bQrsiol3HhWRmNkYUHP3','user','ak_3c946ae0a55de667','2023-06-28 10:22:00',NULL);

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

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


