mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 02:25:14 +00:00
27 lines
367 B
JavaScript
27 lines
367 B
JavaScript
module.exports = {
|
|
name: 'bar',
|
|
fields: [
|
|
{
|
|
type: 'string',
|
|
name: 'title',
|
|
},
|
|
{
|
|
type: 'text',
|
|
length: 'long',
|
|
name: 'content',
|
|
},
|
|
{
|
|
type: 'belongsTo',
|
|
name: 'user',
|
|
},
|
|
{
|
|
type: 'belongsToMany',
|
|
name: 'tags',
|
|
},
|
|
{
|
|
type: 'hasMany',
|
|
name: 'comments'
|
|
},
|
|
],
|
|
};
|