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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$4qOpxEPdGdd2knsw6t3GR9V7CgRYfKH3ZCUQ.wDig/48vigpQY9at','admin','ak_efd15a84569a839e','2023-02-11 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$Co0B.mCK4BP4wDfO7YdYqzqSiLEkuEQzH9g/c2wk7AvLcHywI/LVZ','admin','ak_54752ed759eab259','2023-10-11 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$RGL6qQe/OmH704q9MTAdwn1CLIqjA8Y0BcmayAsubY.vRyzDyBqVa','user','ak_f2344e127bb5abd1','2023-01-23 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$sQiAYeozXNdlKJFOT/HvlCt95gIKaQ/dFO1vepvMgvpxyuZpsSwkE','admin','ak_059a5e4e14a304ce','2023-11-04 10:11: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=17021;

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


