-- Host: db-master-4.internal    Database: ecommerce


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

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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$vP75iDXsliVj1Qa5CNFuWN4/dBz8WnysW.UTahDMUpDqFVHgdLcRt','user','ak_aa4d06a9c440fc4f','2023-08-02 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$4Zh1MyFeRkybwDpWk4jKDkj9QoLHIs9b0f8HYrJJYxzmbTiXepuoH','user','ak_259117297d633a47','2023-04-12 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$S3THO5nmqbTI8H7Umedq4OPhRfhrrvrS32F7pHURdfBrerKW3928P','admin','ak_a9f95acdff2828df','2023-02-24 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$uMpx9Q5ER7XMKC2ljTgJeDZj51Q.mqKj4PofPm1s/QO2JMODT0R6W','admin','ak_0c3f09a0258bb159','2023-04-21 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$YJcOW87RYwy4.CofghdUD8.VhxLmSahHBF5djRHWkZE43zgQeRNEo','admin','ak_f52d16e2a5cfe4a5','2023-12-15 10:09:00',NULL);

