-- Host: db-master-2.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$qDPp.hhUKdg2AoBNJLUyVIs9./lh7xN70WNcdjNnk.NrNN3uSdBGo','user','ak_09257fe4f076dbc9','2023-02-13 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$DgcSx9GbaYqh8RsgPcHq.cGfHYr0WpbkVHISCsX1qZAeE8ProAM.z','admin','ak_f9d7ce81ccbc2449','2023-09-07 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$5cjlPANGaD030kgPoJMsgeoHPZCMrR3h0qL6SylRHifmsZkODcQzo','user','ak_600f38f5ac8e630c','2023-02-13 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$NGUxvoW8keP6oQY1zkUg//CWHWllHqrRUZ99m.f6K79OSs76s4TBk','user','ak_d049167462a06e9c','2023-09-14 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$MJYXUBQxQTxz0HgWu9pDrfCP5eBgJXthRelhW.UqIq96FQnnOYWwi','user','ak_3a8a7b43e09830a4','2023-08-14 10:20:00',NULL);

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

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

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


