[yoga-6] add pricePostfix and price description

This commit is contained in:
Roland Schneider
2025-05-22 08:12:09 +02:00
parent 9dc426bf64
commit 16b6107206
7 changed files with 51 additions and 9 deletions

View File

@@ -14,6 +14,8 @@ export interface YogaPrice {
price?: number;
icon?: { data: Media };
image?: { data: Media };
pricePostfix?: string;
description?: string;
};
}
export interface YogaPrice_Plain {
@@ -25,6 +27,8 @@ export interface YogaPrice_Plain {
price?: number;
icon?: Media_Plain;
image?: Media_Plain;
pricePostfix?: string;
description?: string;
}
export interface YogaPrice_NoRelations {
@@ -36,6 +40,8 @@ export interface YogaPrice_NoRelations {
price?: number;
icon?: number;
image?: number;
pricePostfix?: string;
description?: string;
}
export interface YogaPrice_AdminPanelLifeCycle {
@@ -47,4 +53,6 @@ export interface YogaPrice_AdminPanelLifeCycle {
price?: number;
icon?: AdminPanelRelationPropertyModification<Media_Plain>;
image?: AdminPanelRelationPropertyModification<Media_Plain>;
pricePostfix?: string;
description?: string;
}

View File

@@ -4,7 +4,8 @@
"info": {
"singularName": "yoga-price",
"pluralName": "yoga-prices",
"displayName": "YogaPrice"
"displayName": "YogaPrice",
"description": ""
},
"options": {
"draftAndPublish": true
@@ -27,24 +28,32 @@
"type": "integer"
},
"icon": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false
]
},
"image": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false
]
},
"pricePostfix": {
"type": "string"
},
"description": {
"type": "text"
}
}
}

View File

@@ -34,6 +34,10 @@ export interface AdminApiToken extends Struct.CollectionTypeSchema {
minLength: 1;
}> &
Schema.Attribute.DefaultTo<''>;
encryptedKey: Schema.Attribute.Text &
Schema.Attribute.SetMinMaxLength<{
minLength: 1;
}>;
expiresAt: Schema.Attribute.DateTime;
lastUsedAt: Schema.Attribute.DateTime;
lifespan: Schema.Attribute.BigInteger;
@@ -1638,6 +1642,7 @@ export interface ApiYogaPriceComponentYogaPriceComponent
export interface ApiYogaPriceYogaPrice extends Struct.CollectionTypeSchema {
collectionName: 'yoga_prices';
info: {
description: '';
displayName: 'YogaPrice';
pluralName: 'yoga-prices';
singularName: 'yoga-price';
@@ -1650,6 +1655,7 @@ export interface ApiYogaPriceYogaPrice extends Struct.CollectionTypeSchema {
createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
description: Schema.Attribute.Text;
header: Schema.Attribute.String;
icon: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
image: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
@@ -1662,6 +1668,7 @@ export interface ApiYogaPriceYogaPrice extends Struct.CollectionTypeSchema {
option1: Schema.Attribute.String;
option2: Schema.Attribute.String;
price: Schema.Attribute.Integer;
pricePostfix: Schema.Attribute.String;
publishedAt: Schema.Attribute.DateTime;
updatedAt: Schema.Attribute.DateTime;
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &