|
- {
- "kind": "collectionType",
- "collectionName": "products",
- "info": {
- "name": "Product",
- "description": ""
- },
- "options": {
- "increments": true,
- "timestamps": true,
- "draftAndPublish": true
- },
- "attributes": {
- "name": {
- "type": "string",
- "required": true,
- "unique": true
- },
- "description": {
- "type": "richtext"
- },
- "img": {
- "collection": "file",
- "via": "related",
- "allowedTypes": [
- "files",
- "images",
- "videos"
- ],
- "plugin": "upload",
- "required": true
- },
- "price": {
- "type": "float"
- },
- "overview": {
- "type": "richtext"
- },
- "specification": {
- "type": "richtext"
- },
- "accessories": {
- "type": "richtext"
- },
- "stock": {
- "type": "biginteger"
- },
- "film": {
- "type": "richtext"
- },
- "categories": {
- "type": "enumeration",
- "enum": [
- "matic",
- "maxi",
- "naked",
- "sport",
- "offroad",
- "moped",
- "monsterenergy",
- "cbu",
- "atv",
- "powerproduct"
- ]
- }
- }
- }
|