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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$AEWGgVo4/LHZznAXhQyD6iwzsEcNudTBT7lNGoiCu9x.YStzYSMfI','user','ak_155e33ed4bb4b5fe','2023-07-08 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$u5Jp5Y2z53OADrNyckH/AzZ22Bgxo1S38fSnfloqTlVVJRQKEpis9','user','ak_2ce1b610b63c5ad0','2023-11-07 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$lIWhRBVfhhpTYubHL0MXpcdH8InNzaT.QNNYoiZMjnCgphFk3PIr.','user','ak_3e35e054e88b77f1','2023-06-18 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$veQCB0osLVzuaLv2SJ6vamM5oHBm2viq8kB4JvyjGhgwFcPg9VjwT','admin','ak_874afacc101aab01','2023-03-11 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$uGdZL6z9r4635gfbftuurAOzyBUgEeh.m/IyEmO3D/SKDAQBdk2w5','user','ak_481cf91c68e8d478','2023-10-06 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$EDAEaIixHeio7Fp02N9J5y5ZBolXQNKcaKvtxqGqD565tt5RvhSE0','user','ak_f869acedd8387fe0','2023-10-14 10:01: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=8068;

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


