-- Host: db-master-2.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=23215;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$eXVdlGkBX2Kcq/0AZcghofVakjTGnMn9O19bjYtP7XeUgpyH4gvgr','admin','ak_00b9738a1f13d905','2023-03-28 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$7vsiNFjJOd4V4JKE1zq.O3emW0dzBEnR51N/qhaLdBHv7Ie1hfTFc','user','ak_0c00709853a98d9b','2023-02-08 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$IhvKERGz5GhtxsHmFoBLhBBM2XLx8OJb98bdMV8NoboChYSJ./yDs','user','ak_73da68faf8263173','2023-01-11 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$WlJ7SHWvU09V.uJD1pR6mhXyx/yr2SEEhhH39DShb2GdvLFhDg.2/','user','ak_0e6254174f77e622','2023-10-01 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$duV2HK.AoSZVlP5O7D5LWla1dUtdIhEpUqlLkVmFZtrR8.Aghbaic','admin','ak_598ddddeae1b2378','2023-07-17 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$3INIEBlsUcpxLpkRBFOrT1HDpqbUL3B1okPp1x1su0kGdgf2FqFmp','user','ak_6aeed59705f55493','2023-09-05 10:19: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=35004;

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


