-- Host: db-master-4.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=18430;

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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$RIltrtC6UoI4M6OUT8rC5OjoNvybWcyTz2LcW6FtYVbsZYdxt6bPE','user','ak_f63b834f3f93d6d2','2023-07-25 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$OGhUTX25rl1cfGWNG4wscbMzzl7lrD2PkxLIKDF7jWnu74/09OWWo','user','ak_b8d74a281e24df5f','2023-12-18 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$c3JjkQc6nYa47sKO4rJik9Kgy4r0Tww8UfiJxbYfkJAFNWLrUt.pM','admin','ak_4e48f3476730a108','2023-08-04 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$bA2lUJPbDTk5cOs/zZThVFjIvNKOrGiXHrL8uZreeyJKgExGBG6Kj','user','ak_069d7ea00202f7b3','2023-02-21 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=29111;

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


