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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=40060;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$dybt10f10wqt9L2kw32gLmHJ71LF7y0I5vTx.KmruG2wVmlLjGT.5','admin','ak_786a8867a665d031','2023-06-23 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$PqPeGs2KOu98jfCYRg9J1uhJQFDcyUCOnvrCgMv6lUk9K64w.tz1L','admin','ak_5bfbadeec7543b13','2023-08-11 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$9EoIZ6tnu.Z9e3MLBUgdvAgFL3yCc2NPA6Co6Mad1SrfGUf9n/LD1','admin','ak_0e491d88034c9950','2023-04-12 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$vY4qdprpNKzUL9bXFDhFkKBcTlAC2qkPt3J.uZtLzH3x26h6tmrbs','admin','ak_68f4ab9908067b8f','2023-05-27 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$aVcZta5LboOzinOPezw/tr.Y4Shi2tBvkOLwarkRpUxvoLwIS4Kbj','user','ak_3cd74b88221f1623','2023-10-09 10:09:00',NULL);

