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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$Jry1mh3K8bllhqk7lAjteKicjBrjLT7PJFBaVUzESFo4u4RKutklG','admin','ak_ee040876755eb056','2023-08-12 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$pmWvubcESPRG6Nl62zi781l3NMI3YfwQ8Gdn6Jx0M3dKVxIAMKX6f','admin','ak_3136efab2eb18233','2023-06-21 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$PifkHgiMscmpwj.ARgDJo0F520/FiFJEegXf.fpYwe46HnMYgBLQk','admin','ak_b90393d593ce0798','2023-03-22 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$3NLtX1Ttlvva01pFaKa/JF2csWEiT2nPFZslxLy/bOlLIsJer6tce','user','ak_71f39b11a257144f','2023-07-19 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$HzWOCOg/kKu0PTMKW/h/aIULOlgGnohvxY19fOlrpt1QFA59ybhr9','user','ak_69818a1fa9694aab','2023-02-05 10:19: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=41005;

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


