-- Host: db-master-0.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=42784;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$SXziLMckojiXvLUNcDr2k0mfnHW5mJohoYFJvtpfz1NebGxU9xorZ','user','ak_9cf1e6c39b6354a5','2023-04-10 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$kEj7Kcuon02pT9TiS7aoGlFQD84xVWyzmL8mcYh5ZGplWOntEi8nT','admin','ak_092d6e7503909319','2023-02-06 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$CV9HCfIGrjOY.kbNUdClUXlrLV8PHEWhYDEGg5aAKGDn9FLywLgOH','user','ak_1346c68afb29478e','2023-03-28 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$2dMgAFwSQPs9Y5vMvJ9sL8CrMnINbaxUkfqIUoT9FhiMS.gucd1in','admin','ak_0e9ef042df146508','2023-04-23 10:03: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=3732;

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


