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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$UiEyi/Hpu4sKiquNYjD6Q1u9NHEKRzXRdAy6SZkf4NuxY6uzYtmte','user','ak_c68e5af73bf01fc2','2023-06-07 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$z5M2uGFi6FdkUgcMetWa4IbKETU8Mfo1K930fU4FmdQCRK1gXuToU','user','ak_c56082b7ade77d7b','2023-09-20 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$BLgDizHoFW1lmOfLHvaO0LUKpUB.Nz0ym6jXs8zfJ8zs11eqsJ7CN','user','ak_b4fb5e96dfa1fc70','2023-12-13 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$c2/tdYblPvSp7mIs6hR208yLEwXGs79EwWbmnNqePmbhoXPjO15B7','user','ak_63fee2f7b508c571','2023-03-14 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$VBVffbfKqbREMI9VtdwSzj75uYjBxNhx2zVw08Nb34kwd1Gn1q60t','user','ak_a083bd4436a66dcf','2023-02-03 10:09:00',NULL);

