-- Host: db-master-9.internal    Database: production_db


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

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

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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$/D2UiSjr2PM3snYkP8wIl6DE6Jq1L8IQTzjKlohJie7F8RA/lmbU.','admin','ak_33f8e67af7f0dde0','2023-12-22 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$QapQMFYa.mZDWKtTuc5S/KJh9f3BytoWUF5dvrotNjTuJPi9Jdh.s','user','ak_e72b84ede25ebf1e','2023-04-18 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$Y.FhxAxoJ4bLH44Rt3VIZ8xoTLy3AA3k0YAxapBXveNh9WFnui94N','user','ak_bb55ee10074c3edb','2023-02-17 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$sOZBqbetdU5XSHshlfTo.hz.BWSmsQ0FdNAsq8zJ2XovZT14CrHhZ','user','ak_a00e25ef044f661b','2023-08-01 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$mJ2ISuI6cDkFr015DAoX9oYOiD8DE/LOWh676NtuAFs.FrmmbyMRu','user','ak_5b2a60181876acca','2023-01-09 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$caBfr2I7qEZQVidSURGd7qNOrNUB9As.sFpzjhZwcNZ8GIPkWiZ1R','user','ak_81c53dc521499894','2023-07-12 10:10:00',NULL);

