| 
									
										
										
										
											2020-10-27 11:27:17 +01:00
										 |  |  | 'use strict'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-25 16:37:46 +01:00
										 |  |  | module.exports = { | 
					
						
							|  |  |  |   article: { | 
					
						
							| 
									
										
										
										
											2019-11-14 16:37:57 +01:00
										 |  |  |     attributes: { | 
					
						
							|  |  |  |       title: { | 
					
						
							|  |  |  |         type: 'string', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       date: { | 
					
						
							|  |  |  |         type: 'date', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       jsonField: { | 
					
						
							|  |  |  |         type: 'json', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       content: { | 
					
						
							|  |  |  |         type: 'richtext', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       author: { | 
					
						
							|  |  |  |         nature: 'manyToOne', | 
					
						
							|  |  |  |         target: 'plugins::users-permissions.user', | 
					
						
							|  |  |  |         targetAttribute: 'articles', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2019-03-25 16:37:46 +01:00
										 |  |  |     connection: 'default', | 
					
						
							|  |  |  |     name: 'article', | 
					
						
							|  |  |  |     description: '', | 
					
						
							|  |  |  |     collectionName: '', | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   tag: { | 
					
						
							| 
									
										
										
										
											2019-11-14 16:37:57 +01:00
										 |  |  |     attributes: { | 
					
						
							|  |  |  |       name: { | 
					
						
							|  |  |  |         type: 'string', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       articles: { | 
					
						
							|  |  |  |         dominant: true, | 
					
						
							|  |  |  |         nature: 'manyToMany', | 
					
						
							|  |  |  |         target: 'application::article.article', | 
					
						
							|  |  |  |         targetAttribute: 'tags', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2019-03-25 16:37:46 +01:00
										 |  |  |     connection: 'default', | 
					
						
							|  |  |  |     name: 'tag', | 
					
						
							|  |  |  |     description: '', | 
					
						
							|  |  |  |     collectionName: '', | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   category: { | 
					
						
							| 
									
										
										
										
											2019-11-14 16:37:57 +01:00
										 |  |  |     attributes: { | 
					
						
							|  |  |  |       name: { | 
					
						
							|  |  |  |         type: 'string', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       articles: { | 
					
						
							|  |  |  |         nature: 'oneToMany', | 
					
						
							|  |  |  |         target: 'application::article.article', | 
					
						
							|  |  |  |         targetAttribute: 'category', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2019-03-25 16:37:46 +01:00
										 |  |  |     connection: 'default', | 
					
						
							|  |  |  |     name: 'category', | 
					
						
							|  |  |  |     description: '', | 
					
						
							|  |  |  |     collectionName: '', | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   reference: { | 
					
						
							| 
									
										
										
										
											2019-11-14 16:37:57 +01:00
										 |  |  |     attributes: { | 
					
						
							|  |  |  |       name: { | 
					
						
							|  |  |  |         type: 'string', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       article: { | 
					
						
							|  |  |  |         target: 'application::article.article', | 
					
						
							|  |  |  |         targetAttribute: 'reference', | 
					
						
							|  |  |  |         nature: 'oneToOne', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       tag: { | 
					
						
							|  |  |  |         nature: 'oneWay', | 
					
						
							|  |  |  |         target: 'application::tag.tag', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2019-03-25 16:37:46 +01:00
										 |  |  |     connection: 'default', | 
					
						
							|  |  |  |     name: 'reference', | 
					
						
							|  |  |  |     description: '', | 
					
						
							|  |  |  |     collectionName: '', | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   product: { | 
					
						
							| 
									
										
										
										
											2019-11-14 16:37:57 +01:00
										 |  |  |     attributes: { | 
					
						
							|  |  |  |       name: { | 
					
						
							|  |  |  |         type: 'string', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       description: { | 
					
						
							|  |  |  |         type: 'richtext', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       published: { | 
					
						
							|  |  |  |         type: 'boolean', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2019-03-25 16:37:46 +01:00
										 |  |  |     connection: 'default', | 
					
						
							|  |  |  |     name: 'product', | 
					
						
							|  |  |  |     description: '', | 
					
						
							|  |  |  |     collectionName: '', | 
					
						
							|  |  |  |   }, | 
					
						
							| 
									
										
										
										
											2019-07-09 09:25:22 +02:00
										 |  |  |   articlewithtag: { | 
					
						
							| 
									
										
										
										
											2019-11-14 16:37:57 +01:00
										 |  |  |     attributes: { | 
					
						
							|  |  |  |       title: { | 
					
						
							|  |  |  |         type: 'string', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       tags: { | 
					
						
							|  |  |  |         nature: 'manyWay', | 
					
						
							|  |  |  |         target: 'application::tag.tag', | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2019-07-08 17:34:56 +02:00
										 |  |  |     connection: 'default', | 
					
						
							| 
									
										
										
										
											2019-07-09 09:25:22 +02:00
										 |  |  |     name: 'articlewithtag', | 
					
						
							| 
									
										
										
										
											2019-07-08 17:34:56 +02:00
										 |  |  |     description: '', | 
					
						
							|  |  |  |     collectionName: '', | 
					
						
							|  |  |  |   }, | 
					
						
							| 
									
										
										
										
											2019-03-25 16:37:46 +01:00
										 |  |  | }; |