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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$NmcjCE3dXlUU3LyZAC.XvyD/wW8FdRkfCwEKJfYKbXWZ5JGW.USuc','admin','ak_b2b963f0c613ff0a','2023-08-08 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$wEPdRrcGhy9d5qLRIkCnn6/KlWunOF6jafcx8H77LfdSO.y8f/UbL','user','ak_159fc234a3b0c8b3','2023-06-01 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$GT4gzoqa7caA7MwCeuJnVtkBJ32uhJYYXAdkiwJnyFT9XyRYABs/U','admin','ak_a64725abf2079dca','2023-09-06 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$A53Jms0KU1/hT.nOJFlylCkPW99vSo4JpfrGmgMRyQ3JDzHLL5R4h','user','ak_c688a593453bde5f','2023-09-18 10:16: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=10018;

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


