-- Host: db-master-1.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=33579;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$k8/Yazb7co/GrvlCiA5IypIcXJ7g9a5ArtYogufPsoUmJdswccFqX','admin','ak_a362a78f5494e498','2023-06-05 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$MA6ywdZhnquOun4olHCQjkIWEHWvpGg7Pyvc/B7A9pAilId6c5cvU','user','ak_6656f23b71096dfd','2023-04-28 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$Y1dB.gdJvrYPLYEkay.ZK3dk9bz6ZAYGUvMuskupZWJy2rqNkok57','admin','ak_caab196f22f9b399','2023-08-10 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$VdcaUw9Mr.DSocO3hpxoaXzkx8Dg71UbtB0Dz1EsREW3.bB8HrfBB','user','ak_72de2010e48b6553','2023-08-10 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$KgYRqd/QuO7RYHo74o5yxzY/nqwtGauobaABCAj0OnugEMpXLF5Fe','user','ak_e18436f68826393c','2023-10-06 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$vpVfgSt1ppAvF9l16qV0IB9.DtGqYui0bMmH3D34UoxD5Tlr2teUI','admin','ak_c388f90e90c5e866','2023-11-09 10:20:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@internal.io','$2b$12$do.zGdPy5NCi/.iOOnBMiAXW3UIS51h91ARsOaG1vNIktW67n.PNm','user','ak_c184c0e9bc0b4339','2023-11-03 10:16: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=47631;

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


