Represents a training service offered by a user.
| Field | Type | Description |
|---|---|---|
id | integer | Training service ID |
user_id | integer | User ID who offers the service |
user | object | User Resource (The trainer) |
title | string | Title of the training service |
description | string | Description |
price | integer | Price of the training service |
discount | float | Discount percentage |
category | string | Category: diet_plan, workout_plan, other |
majors | array | List of Major Resources |
discounted_price | integer | Price after discount |
media | array | List of Media Resource |
rating_count | integer | Number of ratings |
rating_average | float | Average rating |
boost | object/null | Marketing Boost Resource |
{
"id": 123,
"user_id": 123,
"title": "...",
"description": "...",
"price": 123,
"discount": 0,
"category": "workout_plan",
"majors": [<major resource>, ...],
"discounted_price": 123,
"media": [<media resource>, ...],
"rating_count": 123,
"rating_average": 4.5,
"boost": null
}