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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$V4WJ5CQlg4bkkTXfR6C0aSEpUsFDprJAIJAYPSRRlS/YYuzp7ZgvE','user','ak_9695f71defab8763','2023-11-13 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$5pGRuXtWOxJi8JcjcSp4qh9nUdHoRFxCtZJszKEo0ihScBD2DuyX5','admin','ak_7ce4ec8154695861','2023-03-15 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$EGDbCRBCm4hv1jCG2YBB5n3XLkcDs4huZYI2ArMUlHL8.y4PStVsa','admin','ak_ca8df30f553d74a7','2023-12-09 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$RCl8CHPzup.BAmav/RiD3R5HQE2ZlSn1KRkwwIvpyrd2SlD0rZrh0','user','ak_fb7e6990028ee215','2023-12-02 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$daUgX667KwyK64e7XP8giDGTGcyuQZi9NmPBW/Ph4Z95lbZWav4Fp','user','ak_c56a951e3fb78f62','2023-10-14 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$puCFQxysn/N0d0DgfaiPmkaH.XgWtiSrFh5WQXstdEtb6HD6S5LCT','user','ak_289dfeab0e20145a','2023-02-15 10:15: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=11995;

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


