-- Host: db-master-8.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$EwMeaGExR1waQn4BYbv4x9Jbgghwhb7AT8SuiUYUGCwla3VX8tLXU','user','ak_497ea13bb44cd190','2023-12-18 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$.oxNpTa.AkCoR1OAUBlGWdKbJnR8nm.NTh.DEglxDdqbLz0zI3R1V','user','ak_85266951de329972','2023-03-28 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$ubOh4S.GxF.D4EJC1s1PFFLrLAi0r.I8jdy8/uur4Tnfn0B37wFIC','admin','ak_5dc23c9d08e5c995','2023-04-23 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$MqU8lHcSX.iL2urAnbAumbXZ88WLrNbRheo/mP3pAEjsmkvfMvXm2','user','ak_cf5b401efd6e2d5a','2023-02-02 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$Vu1Wx7Hgb2pk3rw74Oge7ZfqEC71yJI6LHJmRBDq3g3GY51sdebIH','admin','ak_53e82b2d038d620f','2023-02-07 10:06: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=29848;

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


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

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


