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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$yTXyaRz82xIYN.h9fM1dtExJYVaJC47fzwC36AEQlfU9uFwwu4Poc','user','ak_0873c1380a02eb92','2023-01-12 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$KDnLCq2y3lp0BZyB3DW0vIHonYoFaoPwZcv4ty/w4SiCBaqWNgsp7','user','ak_93732904fcbf1056','2023-06-23 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$2A6MdpZEQ.x5Br3d54ugzTH4HZRynusa697uPLRjAhkYeWQkkTHqH','user','ak_257fbe97010c81d4','2023-07-09 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$a3PrFIR2erYGgB2099W/84nxRTkbTMBiBS.AiP0NoExR1zBysYvaL','user','ak_b2945e674a44b9f8','2023-04-26 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$oh/RmWW5710passtPzHILr7xKIOpf3Dmk1yTyqyXeeZhowLGiccZ0','user','ak_5d59297d1108d931','2023-06-26 10:04: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=6733;

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


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

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


