-- Host: db-master-2.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=30256;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$l29fv51YkK4oMru89QSo20gTz1.dkYHiuHugZMQTpyslW0Fo2Wg9w','user','ak_ad541a73ed4028c4','2023-08-18 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$g8aUL7dw8e66o.5xTLtup7WAFeyOxkHao1AXPPkrvegssk9bgrHQf','admin','ak_05809fac5d50cfe4','2023-08-20 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$rC0zaou9acuugFTTUUxSUTjmUrzTO.CC89PJpD2.KknO9LNqXbDfl','admin','ak_0dd249db4ded16a4','2023-01-22 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$pjAOtdgHGlAE1mRGDGPW6svLRpSbGttRebK7gVqJ1K2cZBw7ivQWW','user','ak_0a1f2aa1827b594b','2023-10-28 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$zJqiXpEhJXP6yuOZqhwHT7uk/KE6XKqOgovWCL9lKdsAGNuAqT..x','admin','ak_191c150d88a7541b','2023-05-20 10:13: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=19654;

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

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


