-- Host: db-master-5.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=49673;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$7820IAWQj/X4VFA.WUtOcFxx1yrOM5Hn79s3foNkp0npw.iAby8eg','user','ak_e9948bfe103db42e','2023-01-03 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$XBQqtBLzQaSPIAoDZ.4s5fwX6icvcllO32EXcZVDgvzTArK2N13fG','user','ak_dbcac21eb8e640ed','2023-04-20 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$EQiA9puOIV2yrYXdxMDscm8H/eAHmgDuUjxfg10Td3GLQXy5DHBN/','admin','ak_2d225fc8ce081a72','2023-11-23 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$.Tmj.MICtjAfnkBsHoNZ3ZV8BqdEXqvWW7SKAx/lC3JxwWW//WTMp','user','ak_a1eed8932742e216','2023-06-27 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$CsKMS.F/eRROWPvHF7G2EiGCVBBKQWZ37IgCHVSGPuqliRlcfqtnk','admin','ak_9b6f3c5dd47fffa0','2023-08-07 10:07: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=35937;

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


