-- Host: db-master-8.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=3796;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$PNnLciQ2MSyRiJbl.I3uwDr/c5/kCq1frV4SmON5czDwrrhwAKHMG','admin','ak_08ff7040ecc6c0f9','2023-05-08 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$kpU//2QAlnZxpz0n33cL.tX28qGXFso0cTXD9YN2I9dqJ4CR1EpA9','user','ak_13dd1984b3aa7314','2023-01-18 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$oBFum.CBWN3qhvBaZrRl5zapMZGpGzCd5YuVholpKITkHJwmFDN22','user','ak_802f17101548f1fb','2023-03-19 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$d7e3RBVHRqQwe2CEkDpmHeGTOZ5ZCaBptnb3VLzwHFiJ97HTY9ZRa','admin','ak_1bd05f7c29278f6d','2023-09-15 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$sCNsAUurFkhsigYyzGNK3Q4rDDP2PvW0IRXMyiALUFPrbmkPH6sB/','admin','ak_4fa2289417c20575','2023-06-08 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$6XDVLfLD3LSAwoVNX2u5nkwc8su3dRql.3vkpsIqyak4HFPJd4c7o','user','ak_94fc74cd2472f02f','2023-02-02 10:23:00',NULL);

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

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

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


