SubscriptionHistory: change type to string

This commit is contained in:
vchikalkin 2025-09-16 12:30:31 +03:00
parent 09e9e178c5
commit 67da211238
2 changed files with 8 additions and 15 deletions

View File

@ -22,17 +22,6 @@
"relation": "oneToOne",
"target": "api::subscription-price.subscription-price"
},
"period": {
"type": "enumeration",
"required": true,
"enum": [
"trial",
"week",
"month",
"half_year",
"year"
]
},
"amount": {
"type": "decimal",
"required": true
@ -69,6 +58,10 @@
},
"description": {
"type": "text"
},
"period": {
"type": "string",
"maxLength": 20
}
}
}

View File

@ -578,10 +578,10 @@ export interface ApiSubscriptionHistorySubscriptionHistory
> &
Schema.Attribute.Private;
paymentId: Schema.Attribute.String;
period: Schema.Attribute.Enumeration<
['trial', 'week', 'month', 'half_year', 'year']
> &
Schema.Attribute.Required;
period: Schema.Attribute.String &
Schema.Attribute.SetMinMaxLength<{
maxLength: 20;
}>;
publishedAt: Schema.Attribute.DateTime;
source: Schema.Attribute.Enumeration<
['payment', 'trial', 'reward', 'admin', 'renewal']