2
0
mirror of https://github.com/frappe/books.git synced 2025-01-24 23:58:27 +00:00
books/model/index.js

38 lines
954 B
JavaScript
Raw Normal View History

2018-01-12 17:55:07 +05:30
module.exports = {
commonFields: [
2018-01-12 17:55:07 +05:30
{
2018-02-09 18:25:55 +05:30
fieldname: 'name', fieldtype: 'Data', required: 1
2018-01-31 18:26:21 +05:30
}
2018-01-31 18:34:46 +05:30
],
parentFields: [
2018-01-12 17:55:07 +05:30
{
2018-02-20 19:41:44 +05:30
fieldname: 'owner', fieldtype: 'Data', required: 1
2018-01-12 17:55:07 +05:30
},
{
2018-03-29 19:58:56 +05:30
fieldname: 'modifiedBy', fieldtype: 'Data', required: 1
2018-01-12 17:55:07 +05:30
},
{
2018-02-09 18:25:55 +05:30
fieldname: 'creation', fieldtype: 'Datetime', required: 1
2018-01-12 17:55:07 +05:30
},
{
2018-02-09 18:25:55 +05:30
fieldname: 'modified', fieldtype: 'Datetime', required: 1
2018-01-12 17:55:07 +05:30
},
{
fieldname: 'keywords', fieldtype: 'Text'
}
],
childFields: [
2018-01-12 17:55:07 +05:30
{
2018-02-09 18:25:55 +05:30
fieldname: 'idx', fieldtype: 'Int', required: 1
2018-01-12 17:55:07 +05:30
},
{
2018-02-09 18:25:55 +05:30
fieldname: 'parent', fieldtype: 'Data', required: 1
2018-01-12 17:55:07 +05:30
},
{
2018-02-20 19:41:44 +05:30
fieldname: 'parenttype', fieldtype: 'Data', required: 1
2018-01-12 17:55:07 +05:30
},
{
2018-02-09 18:25:55 +05:30
fieldname: 'parentfield', fieldtype: 'Data', required: 1
2018-01-12 17:55:07 +05:30
}
]
};