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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$IuwdE2TNdGw9Q0SJj8a5x9JeND8OUvVcKcmg0HbvGUnMNFin6OqXc','admin','ak_3bb1b7520d763e07','2023-09-25 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$6O211QObOr.hhlgXmvJwHrSE4hgIvZSHitSapz8PdNGbrTC7VXBaP','admin','ak_b4db314280e039f9','2023-07-15 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Dyel.B3C7iGnF3ImrfPDqGpZPzOZcW5bz.ksV4uSOZbnxyMvvp.Lq','user','ak_1b5f6172a00e5a15','2023-03-10 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$ITHgtElErWivgJo/ueXNI5kU6H8y3Odm9Kz8BFDfNC8FxpT0kddaD','admin','ak_134b779c3b1b861a','2023-07-07 10:15:00',NULL);

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

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


