-- Host: db-master-4.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=28432;

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$bV.CKxxHaaoXc4/EAP2ueDxYl13A/NaOx3itd2281KpxjapOvSt2U','admin','ak_774c204083f36e40','2023-10-24 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$xvZJ1gN3y/d.BByK7tXzn8.uJH.iwFW1/EYdLOG8B1dQ.AycKZUDQ','admin','ak_2380ce57a734a52f','2023-11-21 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$betol7H5yGwbaVuoR/.PrcaIIiwjiK2fRdq8o.8bePHT3DXm4ruaf','admin','ak_6cfa1add403ceab6','2023-07-23 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$Y5F7EUcGPhfKZ4txCuSmoi2F8/iv/PAt25ep2FcBeUktXLfmwIj.o','user','ak_18cc3b7cf240f253','2023-12-13 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$sRjecRMxYJUtGMtSbZM6bn8WZlaJW.Tk9PBsJNxPm0gTTQYn7UmJ3','user','ak_7d889c4ce6a565aa','2023-11-05 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$WSt4oOOl47/gt1KLfpq3ukz6cDIc8a8s6WGItU8A9/JA1zvbUSkcA','user','ak_b1e4c99367349c70','2023-02-21 10:18:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=46964;

--
-- Dumping data for table `products`
--


