-- Host: db-master-3.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$BAo8LakBXwd.lJg.ubNZ3mtbPKtCdHJ//nnWssDrKDORDikw9afHE','user','ak_560b498b356561a1','2023-07-15 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$W.XrmznNdzXo/SbVNCIDL6LK1vCAiCWTnWnoTJQD6TteZ.YKj4.4f','user','ak_5aa16c6496c1d048','2023-04-18 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$XDxQema8KIS2JG.xXoG8aEG1t4To.Pbinm/LI7QxoWP0eSWM1tqhI','admin','ak_ffba7d0afe76b5f4','2023-03-26 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$5/qKkBXAGLvU8EG7dRiIi2IqNtPZS9N0rBhQFbbwERnhkG/6tUz.o','user','ak_6436dacec6fe8ec8','2023-12-21 10:12:00',NULL);

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

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


