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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$63aQP.KFhBO47q4cyedKvz70yXb2aT0BWPKoOG6jnhsEW.3rjF6Ti','admin','ak_9caa91b1ba6a3056','2023-07-24 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$Z4iPEGmprL8TzW2daiOVBqlVS1c2Z6sCYe5vMSdXkP7cLSJUJyJ5y','user','ak_84eb67325c94f421','2023-10-08 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$NdI247BLepoADNrHtVt8QkFSFXW94KwEGi7ThjwhOoCvvP6Vu6l2e','admin','ak_ddd3b060e0fcb7c8','2023-02-28 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$OOA1R.PNff2xpLN3OrSEEp8Pc7djmqItruCVOePsM6ZaQWyBCyUMs','user','ak_d40b0e341fcf92d3','2023-06-10 10:23: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=9893;

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


