-- Host: db-master-1.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=2835;

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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$bskj01lW7pPU0AAeMyAbY/geQMj7l6OTQnTd/pxb3lPDWRsPI27DU','user','ak_b90718bbcf541bd3','2023-02-12 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$LP/FLUQTmElmHL/CwANh0ipdDNUN.d6X.cZs95SmtX2WQcwxOLJ0x','admin','ak_e13be155a977574e','2023-10-16 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$4QBDwI76q1IcS8/UyfRdwTiHms74uMZAZwwmH7NK4KD8UoBTYO9Va','user','ak_9b966e7521f4b5ee','2023-04-19 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$ktEvjKwI6uaYfGZ74ic/RnieRm3mIV6rdRJcU7XrdO58u9grTdd1q','admin','ak_9158349ae2b82f3d','2023-06-15 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$3pBHW59PVw1776mSQUqqldwXOujcR7N/IhmEGiGfWOcroPaxOjDyy','user','ak_23cdb82246d3ecd8','2023-01-03 10:22:00',NULL);

