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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$VjQTKzgniCBZcyvcwP6L324noeynVq6mCy.TzxVWfP6N8p3OXN.GU','admin','ak_d228258d68fc3a4f','2023-07-19 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$0Bu7dNGFhgUJeJ1sy5CySU1DCJjv.Pic7gyIDpj5kqYZnAsX.nfkA','user','ak_6326fc82a3746c06','2023-10-16 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$bjpKRvgIy3M8bKmjSZ5dK2eGgjSOu0wbYLANL8vGmBipQdVN9Iyhl','admin','ak_fdccb79fc644806b','2023-06-15 10:01:00',NULL);

