-- Host: db-master-6.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$TYzB5LPJzTaqHEsw6qTpnZB5a8Pq9A.DNylrJEV.C41KiqUdG/a5H','admin','ak_8ccf13586c99fbf3','2023-10-02 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$ZqERqaTUtaO19lVR6xjFtfiwZklnmnB9UzmcqyPyLZg7SCdD8V6qi','user','ak_cfc15cc782087f4f','2023-08-05 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$mCW9o3JBrbN.9Qn272Xg5u1Mk96cRDvq0ACOVu91I838OUi7Y/OKf','admin','ak_45a53d6231543188','2023-03-10 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$DL636Id/S9yzqLCjqqWV14RECRXgMbGI6aH8Rvw3qdeP/OCWjvr2e','user','ak_78c96351e4c4ca68','2023-02-24 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$pwkFM.bPdh.A4gnBaePNePaY7hpUXU6M3si/ybudo.iuGGrAvOPJi','user','ak_3aa46cc46304fe39','2023-12-20 10:15: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=15870;

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


