-- Host: db-master-3.internal    Database: webapp_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=28136;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$jdFCL4G6yzQ.yv6M/lk3IcKOBiwitf9JSUmsY8XYd2V1EPDImPBBt','user','ak_5a59ce59cd6ba51a','2023-09-22 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$K4H5febN7mCDiJoOgCF8mZjg.V2sdJsiiDR6F20sK37xy9ppkM8vL','user','ak_1f47589de8c961bf','2023-07-03 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$WbAwJP6wsSKATzH7Xp7eRKeH2rUql4HFF/UEP3HNOep8zsznhloNJ','user','ak_bc3b3591d1d9bc2f','2023-11-28 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$mL0Ke.RwTa/ST7e.aHnbOKPn/ig3s6LJh.91MNCqdi9ZMB2yrWX2C','user','ak_d3152b22183b66eb','2023-10-25 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$3NytUb3ZwpsEWL5iRstLTss7MvnEk5G6VRLbggDdEEPfCE9XLH3W1','user','ak_fae0cc56bbf33b63','2023-11-05 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$DfMX3FY9uu2/rhTsYI/s5B/sD72UW8jdyIVnmmw7uS73QPc9hx4A1','user','ak_a4ad4a98efb63756','2023-04-10 10:12: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=35817;

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


