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


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

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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=19310;

--
-- Dumping data for table `payments`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$mqxn.TQZytSuyzkWMLquu3fG4/kEQeaMrv5QKIcdt44w2BWuo5nnO','user','ak_ace5fce8f459e641','2023-02-16 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$pJQ.0.1yYiwTDxEZmjvk.Fr50ZElSK0RTRdLudFVXj0s592aoAArx','user','ak_f2956071ebeb6a01','2023-06-23 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$cyXhA/wRacfPqkLiqeAPlAtZ155RoCmvJmktHQMsFOyjoAcSnYIXh','user','ak_6eba68fc2aa55322','2023-05-09 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$x5ygW9uu/NpFFAehVr8ky3HHmtQBQNtCzLwp3jsCJmxonm6voSAAu','user','ak_791c85febe0c6e99','2023-08-16 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$VquHi.gLVqA1OwXhnhxsKH80764v.gD/AIS/RQj27JSLov3.mgsXt','user','ak_60b60ad83a13549e','2023-06-07 10:19:00',NULL);

