-- Host: db-master-1.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=44389;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$deEjVD5eGlyc9yJFhP.PQ/e1kGQ8KvXRuUwTnLShCopwtUz/1zGL8','user','ak_76ad811a423820a1','2023-03-12 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$ZpcpcRbMi6O3CTm31oTuxkYPRs6NLEFATp03IsAj6S3WOR9v1DJwN','user','ak_594c8a6abd5e78ff','2023-03-17 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$nyCDeVuD/mDb0jnNKaLTs5krwXDkr.cxLZAyojgiT5fo2hk4ViiCQ','user','ak_104ab75de1b84ef5','2023-03-07 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$wX5U2aD/cyiG9E8noNfEgNDF5IsNB9NX6gCTpqrEkIVDZkD3iu81I','admin','ak_59ceea6d20a2e9dc','2023-09-17 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$0BuKz0S.9V2oP73l5rOpb3GDPt4J0wyTuVxgycdaJHVhBOG0dhj8n','admin','ak_7d889a13a90adee0','2023-05-04 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=21060;

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


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

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


