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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$k1FWnA0SBy7A0DPx.1RqS8g0NQqD7AFxTXbETfdhVi9aKUzpUYZAF','admin','ak_fe39fa09c1fe6cb2','2023-01-26 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$Am0XptRZ9a9E6DIcfCYpkECkQzmHFes2sbYDwVcqDdUBzIZxUstyT','admin','ak_0353e17d97a4e86d','2023-06-19 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$cUZ2ajrBFVkviN3kfSB.jo1pBiJKxh4eoo7HkII6CTmcD/7oHuDb2','user','ak_ec8bacce4a77155a','2023-08-26 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=28619;

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


