-- Host: db-master-0.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=13226;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$6ZYd9FcSSVvjTHkvVIbqbCl58suDiLBL0S1d1.cXOvh01ZVLGzxyB','user','ak_77097093da89578e','2023-03-09 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$vmJqFboVVVEQO2IG2gBW0eHjzrwpiRcGEKzyypw1GJvloA/KqyLd9','user','ak_16eb8444ded5ab70','2023-07-27 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$NeRjvPuDw/U6H9xd.AcqDcjDXdw1.KnEkUIPee5PYSri27seA80KE','user','ak_df7755d914e70e61','2023-07-27 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$ChTtmwvdkSFBwzItKcgFF/spDTFviWxHM9GXXKVGW3BFkkgF7sR.k','user','ak_0fd917e3464a4015','2023-11-08 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$LJbzBrUfu5iyjX3O.g4oIkZ6r3en9u20BiXVcGk2EQFRnEteHJne3','user','ak_06873dc4ea6f299f','2023-06-10 10:13:00',NULL);

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

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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=16218;

--
-- Dumping data for table `orders`
--


