- Introduced a new 'subscription_rewards' relation in both the customer and subscription history schemas to link them with subscription rewards. - Updated the 'expiresAt' field in the subscription schema to be required, ensuring better data integrity. - Adjusted the default value for 'maxOrdersPerMonth' in the subscription setting schema from 30 to 20, and removed unused fields to streamline the model. - Updated TypeScript definitions to reflect these changes, ensuring type safety and consistency across the application.
8 lines
177 B
TypeScript
8 lines
177 B
TypeScript
/**
|
|
* subscription-reward service
|
|
*/
|
|
|
|
import { factories } from '@strapi/strapi';
|
|
|
|
export default factories.createCoreService('api::subscription-reward.subscription-reward');
|