INSERT INTO `{prefix}packages` (`name`, `version`, `created_at`, `updated_at`) VALUES
('shaun_paid_content', '1.2.0', NOW(), NOW());

INSERT INTO `{prefix}subscription_types` (`type`, `order`, `class`) VALUES
('user_subscriber', 1, 'Packages\\ShaunSocial\\PaidContent\\Subscription\\SubscriptionTypeUserSubscriber');

INSERT INTO `{prefix}wallet_transaction_types` (`type`,`order`, `is_root`, `class`) VALUES
('paid_content', 8, 0, 'Packages\\ShaunSocial\\PaidContent\\Wallet\\WalletTransactionTypePaidContent'),
('root_buy_post_fee', 9, 1, 'Packages\\ShaunSocial\\PaidContent\\Wallet\\WalletTransactionTypeRootBuyPostFee'),
('root_subscriber_fee', 10, 1, 'Packages\\ShaunSocial\\PaidContent\\Wallet\\WalletTransactionTypeRootSubscriberFee');

INSERT INTO `{prefix}wallet_transaction_sub_types` (`parent_type_id`, `type`, `class`) VALUES
((SELECT `id` FROM `{prefix}wallet_transaction_types` WHERE `type` = 'paid_content'), 'paid_content_buy_post', 'Packages\\ShaunSocial\\PaidContent\\Wallet\\PaidContent\\PaidContentTransactionTypeBuyPost'),
((SELECT `id` FROM `{prefix}wallet_transaction_types` WHERE `type` = 'paid_content'), 'paid_content_user_subscriber', 'Packages\\ShaunSocial\\PaidContent\\Wallet\\PaidContent\\PaidContentTransactionTypeUserSubscriber'),
((SELECT `id` FROM `{prefix}wallet_transaction_types` WHERE `type` = 'commission'), 'paid_content_buy_post', 'Packages\\ShaunSocial\\PaidContent\\Wallet\\Commission\\PaidContentTransactionTypeBuyPost'),
((SELECT `id` FROM `{prefix}wallet_transaction_types` WHERE `type` = 'commission'), 'paid_content_user_subscriber', 'Packages\\ShaunSocial\\PaidContent\\Wallet\\Commission\\PaidContentTransactionTypeUserSubscriber'),
((SELECT `id` FROM `{prefix}wallet_transaction_types` WHERE `type` = 'payment'), 'root_buy_post_fee', 'Packages\\ShaunSocial\\PaidContent\\Wallet\\Payment\\PaidContentTransactionTypeRootBuyPostFee'),
((SELECT `id` FROM `{prefix}wallet_transaction_types` WHERE `type` = 'payment'), 'root_subscriber_fee', 'Packages\\ShaunSocial\\PaidContent\\Wallet\\Payment\\PaidContentTransactionTypeRootSubscriberFee'),
((SELECT `id` FROM `{prefix}wallet_transaction_types` WHERE `type` = 'payment'), 'tip', 'Packages\\ShaunSocial\\PaidContent\\Wallet\\Payment\\PaidContentTransactionTypeTip');

INSERT INTO `{prefix}model_maps` (`subject_type`, `model_class`) VALUES
('subscriber_packages', 'Packages\\ShaunSocial\\PaidContent\\Models\\SubscriberPackage'),
('user_post_paid_orders', 'Packages\\ShaunSocial\\PaidContent\\Models\\UserPostPaidOrder');