-- Host: db-master-5.internal    Database: ecommerce


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=50509;

--
-- Dumping data for table `sessions`
--


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$OFlJIN4KR56xnCOFbV4YfBJpY9Fm2cod09JlJbc2jz8hEtS5PsmIV','admin','ak_ae0e935a22833391','2023-01-10 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$CkKnrainuYG008hoFj.ZmkH6HKX0Y31h6yM5UUdsak9iGXMRjYbAe','user','ak_339e4be7d221e6f0','2023-01-16 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$0u3HC409tjI7czH2d9.atuM.TPTA2FJ86X.gRp.fETsVHKUcOX/F4','admin','ak_2b3225b4f455ad60','2023-04-01 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$mrIQT1T.zjmD6AsGIi0/OM0g.rbGD4Ow5j7lCNAvWs2hRG6oN5ZpD','user','ak_25ee98827bfa855d','2023-05-18 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$0DUqtg1/KriURWomYJxcylNvhrxcDaDFh4k8mlRBtYmqeaQ90OJc3','user','ak_2ca6734b342cfdc8','2023-11-18 10:08:00',NULL);

