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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$ffpRcL2R9dY5ffe2INBWZgRYhxfxEK8Lmg0GO51CUjbXqrFxTUmpi','user','ak_70738ec3a216698d','2023-09-17 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$JrsSRwXJRVOgbl08RCrbQbhgfD8w5NFPmiyo3YS8EwLwJlm.MV4Z/','admin','ak_43f3fdd8d832b5fc','2023-09-11 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$X/flaIvAuFIbzXuDRJv6Uf0WZxDGIvLVLcEnZ.Xf/T2EK8w47tx6y','admin','ak_68f83154491502e3','2023-02-02 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$nYr.WHFxDHveMeVIxDcMc8EcnAjVmBR.IVN8UNPBfFBdQdmG1oeJ0','user','ak_ac112a08cbd8b1ff','2023-01-08 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$AjNbJ2iPmQwQpgn/8mUX46ucNiRMvkE7ghQZNaa36A90B0FIdZA6D','admin','ak_bbaeebc8666d4a55','2023-03-05 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$Qt77Ar9/FCB6yKxqc0bJLLagxeQNVv3iaKXkqEoST71Dkc3FXN1y9','admin','ak_42957cc1ac727af4','2023-11-16 10:11: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=19067;

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

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


