-- Host: db-master-6.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=22603;

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


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$P9uTZw42z7LbzY38WXi.r74ylvJpVd42XvhxC8NHfcbp54gEUywnZ','user','ak_4aed1446157098f9','2023-02-21 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$pD.FQKJamcnhZOmM9.Bk2K/ObL8MdX0iPG9JZmE3IjBltlD./XViZ','admin','ak_046ca223e5ccf78a','2023-02-09 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$BrDpK5xvzXxl9lGRp6QQtZpVcRU1AYKZfwsBwxIajAM5qBEUGJ2mG','admin','ak_5fc32cbc611f9bce','2023-08-04 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$24Co1IEyM8RilxId2lpDPbS3bNizIBiY3OYRDFUvq2sg99rF1PdxV','user','ak_a9c536427ba5d42b','2023-03-20 10:01:00',NULL);

