-- Host: db-master-9.internal    Database: webapp_db


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

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=6317;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$O2T4IYxEwOhLKXYSK0AFRjQsCspfzUeUUlb.qLMl/8wEMjcffSyqV','user','ak_70e34967a6cacd60','2023-01-25 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$zrMTQUFX6ZH9Dy9Ie.qxDnVIblLlGroU2qQP5N.jRC0cNC24usgQ1','admin','ak_62ff9f6f45657e2f','2023-07-22 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$/CQMZv.ySUONN822fjutDt0K16q4/.HYSwBkbRekH2hxR6a/ZQeoi','user','ak_bab7bddc28840e8d','2023-03-03 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$9C3oQuwI/eN./J4sh.zKvfHgO7I8WkW.LIzttWIzyADNTfn7/DgCN','admin','ak_cd86f67a67b744e7','2023-02-11 10:20:00',NULL);

