-- Host: db-master-5.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=31764;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$I7R9Bsjd41lyPDdohvr9abgIdqsaV6Vv5ccB1emsD/rTAEtjVLejJ','user','ak_db96b18b5769b082','2023-03-27 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$KnN1xKBdrVptPBrI1t/8lukT4lXW.pbXpLd3x7dLI3.wjcnmyJD8K','admin','ak_4906bc466552754f','2023-10-04 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$byqDgdZOJ63Tlp5DLErjLApd22KDpuE8v0Da..ygM/Dis9otAAXPO','user','ak_0081d2cbbadf5a52','2023-03-12 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$mIn3j5pD0Ve/LooNFmYh.v2DIbpAMl89ui91QVRkZdyOb/gcCqDqA','admin','ak_9524db3c828e6c01','2023-04-17 10:06: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=28938;

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


