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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=33757;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$6VOQdzHQMCAuuFECxH3yL4595ZtaC.KEoqv6OS8g8C0D3R8gXSj9u','admin','ak_01b80b940d5c1da7','2023-05-10 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$Gw37r7q0928sxWHnzLZvvF5jpDV93DSvmyWz4StFFrQhXU69oMEYQ','user','ak_fdea5a303d0e6449','2023-11-27 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$sxKZxI4yL7ijXiHVUiprcW7d7jlH8lSR41aBbF6jmf4S3TXUb9rjp','user','ak_f72008cbbd35c773','2023-04-26 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$RpB2I7sn816IUMmG3H9fTk4RatKvPW1UDPYorySnRb9rri6vA00Tv','user','ak_c2e01616dffcbc2b','2023-02-06 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$Y/6rlyXCl5InsNZiBuc/Ts.1Z.SAQ1Bd4eAeUNphp32/Bp8msGsck','user','ak_78017e86707ebf28','2023-08-03 10:09: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=50422;

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


