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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$GS6a7bQRC5lsSTypcGeymNUcZwTkIsseY5nRjP2OnpSdfpzFq.ff.','admin','ak_7e23f0f05e500136','2023-05-28 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$X8ZzkYAEUvmLZWYo6kxYrWX.K8mDrOjVT1Onktb8VCnsd1mBKUSbA','user','ak_33162b703668ecf1','2023-10-16 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$lEKZrrD0iPrn/ktPBIVZPHp946xoVlB8BZJsn5JBnZcOm2Yk2nlBH','user','ak_7e55df1bb8e35cca','2023-07-03 10:14: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=3719;

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


