File: /var/dev/nowruzgan/rest/api/models/Tag.js
module.exports = {
attributes: {
id: {
type: 'number',
autoIncrement: true
},
title: {
type: 'string',
},
titleEn: {
columnName: 'title_en',
type: 'string',
allowNull: true
},
taxonomy: {
type: 'string'
},
docs: {
collection: 'KetabkhanehDoc',
through: 'KetabkhanehDocTag',
via: 'tag'
},
entries: {
collection: 'EncycEntry',
through: 'EncycEntryTag',
via: 'tag'
},
biblioTexts: {
collection: 'BiblioText',
through: 'BiblioTextTag',
via: 'tag'
},
biblioPersons: {
collection: 'BiblioPerson',
through: 'BiblioPersonTag',
via: 'tag'
},
biblioEvents: {
collection: 'BiblioEvent',
through: 'BiblioEventTag',
via: 'tag'
},
}
};