| @@ -0,0 +1,52 @@ | |||||
| { | |||||
| "routes": [ | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/statuses", | |||||
| "handler": "status.find", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/statuses/count", | |||||
| "handler": "status.count", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/statuses/:id", | |||||
| "handler": "status.findOne", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "POST", | |||||
| "path": "/statuses", | |||||
| "handler": "status.create", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "PUT", | |||||
| "path": "/statuses/:id", | |||||
| "handler": "status.update", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "DELETE", | |||||
| "path": "/statuses/:id", | |||||
| "handler": "status.delete", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| } | |||||
| ] | |||||
| } | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/controllers.html#core-controllers) | |||||
| * to customize this controller | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/models.html#lifecycle-hooks) | |||||
| * to customize this model | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -0,0 +1,36 @@ | |||||
| { | |||||
| "kind": "collectionType", | |||||
| "collectionName": "statuses", | |||||
| "info": { | |||||
| "name": "Status" | |||||
| }, | |||||
| "options": { | |||||
| "increments": true, | |||||
| "timestamps": true, | |||||
| "draftAndPublish": true | |||||
| }, | |||||
| "attributes": { | |||||
| "status_id": { | |||||
| "type": "string" | |||||
| }, | |||||
| "status_description": { | |||||
| "type": "string" | |||||
| }, | |||||
| "transactions": { | |||||
| "via": "status", | |||||
| "collection": "transaction" | |||||
| }, | |||||
| "transaction_suzukis": { | |||||
| "via": "status", | |||||
| "collection": "transaction-suzuki" | |||||
| }, | |||||
| "transaction_hondas": { | |||||
| "via": "status", | |||||
| "collection": "transaction-honda" | |||||
| }, | |||||
| "transaction_hinos": { | |||||
| "via": "status", | |||||
| "collection": "transaction-hino" | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/services.html#core-services) | |||||
| * to customize this service | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -0,0 +1,52 @@ | |||||
| { | |||||
| "routes": [ | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/transaction-hinos", | |||||
| "handler": "transaction-hino.find", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/transaction-hinos/count", | |||||
| "handler": "transaction-hino.count", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/transaction-hinos/:id", | |||||
| "handler": "transaction-hino.findOne", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "POST", | |||||
| "path": "/transaction-hinos", | |||||
| "handler": "transaction-hino.create", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "PUT", | |||||
| "path": "/transaction-hinos/:id", | |||||
| "handler": "transaction-hino.update", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "DELETE", | |||||
| "path": "/transaction-hinos/:id", | |||||
| "handler": "transaction-hino.delete", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| } | |||||
| ] | |||||
| } | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/controllers.html#core-controllers) | |||||
| * to customize this controller | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/models.html#lifecycle-hooks) | |||||
| * to customize this model | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -0,0 +1,59 @@ | |||||
| { | |||||
| "kind": "collectionType", | |||||
| "collectionName": "transaction_hinos", | |||||
| "info": { | |||||
| "name": "TransactionHino" | |||||
| }, | |||||
| "options": { | |||||
| "increments": true, | |||||
| "timestamps": true, | |||||
| "draftAndPublish": true | |||||
| }, | |||||
| "attributes": { | |||||
| "order_id": { | |||||
| "type": "string" | |||||
| }, | |||||
| "product_name": { | |||||
| "type": "string" | |||||
| }, | |||||
| "product_img": { | |||||
| "model": "file", | |||||
| "via": "related", | |||||
| "allowedTypes": [ | |||||
| "images", | |||||
| "files", | |||||
| "videos" | |||||
| ], | |||||
| "plugin": "upload", | |||||
| "required": false | |||||
| }, | |||||
| "product_quantity": { | |||||
| "type": "biginteger" | |||||
| }, | |||||
| "product_price": { | |||||
| "type": "biginteger" | |||||
| }, | |||||
| "product_color": { | |||||
| "type": "string" | |||||
| }, | |||||
| "product_courier": { | |||||
| "type": "string" | |||||
| }, | |||||
| "cust_name": { | |||||
| "type": "string" | |||||
| }, | |||||
| "cust_telp": { | |||||
| "type": "biginteger" | |||||
| }, | |||||
| "cust_address": { | |||||
| "type": "text" | |||||
| }, | |||||
| "note": { | |||||
| "type": "text" | |||||
| }, | |||||
| "status": { | |||||
| "model": "status", | |||||
| "via": "transaction_hinos" | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/services.html#core-services) | |||||
| * to customize this service | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -0,0 +1,52 @@ | |||||
| { | |||||
| "routes": [ | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/transaction-hondas", | |||||
| "handler": "transaction-honda.find", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/transaction-hondas/count", | |||||
| "handler": "transaction-honda.count", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/transaction-hondas/:id", | |||||
| "handler": "transaction-honda.findOne", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "POST", | |||||
| "path": "/transaction-hondas", | |||||
| "handler": "transaction-honda.create", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "PUT", | |||||
| "path": "/transaction-hondas/:id", | |||||
| "handler": "transaction-honda.update", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "DELETE", | |||||
| "path": "/transaction-hondas/:id", | |||||
| "handler": "transaction-honda.delete", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| } | |||||
| ] | |||||
| } | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/controllers.html#core-controllers) | |||||
| * to customize this controller | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/models.html#lifecycle-hooks) | |||||
| * to customize this model | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -0,0 +1,59 @@ | |||||
| { | |||||
| "kind": "collectionType", | |||||
| "collectionName": "transaction_hondas", | |||||
| "info": { | |||||
| "name": "TransactionHonda" | |||||
| }, | |||||
| "options": { | |||||
| "increments": true, | |||||
| "timestamps": true, | |||||
| "draftAndPublish": true | |||||
| }, | |||||
| "attributes": { | |||||
| "order_id": { | |||||
| "type": "string" | |||||
| }, | |||||
| "product_name": { | |||||
| "type": "string" | |||||
| }, | |||||
| "product_quantity": { | |||||
| "type": "biginteger" | |||||
| }, | |||||
| "product_price": { | |||||
| "type": "biginteger" | |||||
| }, | |||||
| "product_color": { | |||||
| "type": "string" | |||||
| }, | |||||
| "product_courier": { | |||||
| "type": "string" | |||||
| }, | |||||
| "cust_name": { | |||||
| "type": "string" | |||||
| }, | |||||
| "cust_telp": { | |||||
| "type": "string" | |||||
| }, | |||||
| "cust_address": { | |||||
| "type": "text" | |||||
| }, | |||||
| "note": { | |||||
| "type": "text" | |||||
| }, | |||||
| "product_img": { | |||||
| "model": "file", | |||||
| "via": "related", | |||||
| "allowedTypes": [ | |||||
| "images", | |||||
| "files", | |||||
| "videos" | |||||
| ], | |||||
| "plugin": "upload", | |||||
| "required": false | |||||
| }, | |||||
| "status": { | |||||
| "model": "status", | |||||
| "via": "transaction_hondas" | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/services.html#core-services) | |||||
| * to customize this service | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -0,0 +1,52 @@ | |||||
| { | |||||
| "routes": [ | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/transaction-suzukis", | |||||
| "handler": "transaction-suzuki.find", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/transaction-suzukis/count", | |||||
| "handler": "transaction-suzuki.count", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/transaction-suzukis/:id", | |||||
| "handler": "transaction-suzuki.findOne", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "POST", | |||||
| "path": "/transaction-suzukis", | |||||
| "handler": "transaction-suzuki.create", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "PUT", | |||||
| "path": "/transaction-suzukis/:id", | |||||
| "handler": "transaction-suzuki.update", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "DELETE", | |||||
| "path": "/transaction-suzukis/:id", | |||||
| "handler": "transaction-suzuki.delete", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| } | |||||
| ] | |||||
| } | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/controllers.html#core-controllers) | |||||
| * to customize this controller | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/models.html#lifecycle-hooks) | |||||
| * to customize this model | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -0,0 +1,59 @@ | |||||
| { | |||||
| "kind": "collectionType", | |||||
| "collectionName": "transaction_suzukis", | |||||
| "info": { | |||||
| "name": "TransactionSuzuki" | |||||
| }, | |||||
| "options": { | |||||
| "increments": true, | |||||
| "timestamps": true, | |||||
| "draftAndPublish": true | |||||
| }, | |||||
| "attributes": { | |||||
| "cust_name": { | |||||
| "type": "string" | |||||
| }, | |||||
| "cust_telp": { | |||||
| "type": "biginteger" | |||||
| }, | |||||
| "cust_address": { | |||||
| "type": "text" | |||||
| }, | |||||
| "note": { | |||||
| "type": "text" | |||||
| }, | |||||
| "order_id": { | |||||
| "type": "string" | |||||
| }, | |||||
| "product_name": { | |||||
| "type": "string" | |||||
| }, | |||||
| "product_quantity": { | |||||
| "type": "biginteger" | |||||
| }, | |||||
| "product_price": { | |||||
| "type": "biginteger" | |||||
| }, | |||||
| "product_color": { | |||||
| "type": "string" | |||||
| }, | |||||
| "product_courier": { | |||||
| "type": "string" | |||||
| }, | |||||
| "product_img": { | |||||
| "model": "file", | |||||
| "via": "related", | |||||
| "allowedTypes": [ | |||||
| "images", | |||||
| "files", | |||||
| "videos" | |||||
| ], | |||||
| "plugin": "upload", | |||||
| "required": false | |||||
| }, | |||||
| "status": { | |||||
| "model": "status", | |||||
| "via": "transaction_suzukis" | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/services.html#core-services) | |||||
| * to customize this service | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -2,7 +2,8 @@ | |||||
| "kind": "collectionType", | "kind": "collectionType", | ||||
| "collectionName": "transactions", | "collectionName": "transactions", | ||||
| "info": { | "info": { | ||||
| "name": "Transaction" | |||||
| "name": "Transaction", | |||||
| "description": "" | |||||
| }, | }, | ||||
| "options": { | "options": { | ||||
| "increments": true, | "increments": true, | ||||
| @@ -10,7 +11,7 @@ | |||||
| "draftAndPublish": true | "draftAndPublish": true | ||||
| }, | }, | ||||
| "attributes": { | "attributes": { | ||||
| "product_order": { | |||||
| "order_id": { | |||||
| "type": "string" | "type": "string" | ||||
| }, | }, | ||||
| "product_name": { | "product_name": { | ||||
| @@ -50,6 +51,10 @@ | |||||
| ], | ], | ||||
| "plugin": "upload", | "plugin": "upload", | ||||
| "required": false | "required": false | ||||
| }, | |||||
| "status": { | |||||
| "model": "status", | |||||
| "via": "transactions" | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||