SubscriptionHistory: change type to string
This commit is contained in:
parent
09e9e178c5
commit
67da211238
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
8
types/generated/contentTypes.d.ts
vendored
8
types/generated/contentTypes.d.ts
vendored
@ -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']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user