File: /var/dev/nowruzgan/rest/api/models/LexiconWord.js
module.exports = {
tableName: 'lexicon_word',
attributes: {
id: { type: 'number', autoIncrement: true, },
title: {
type: 'string',
},
sortable: {
type: 'string'
},
lang: {
type: 'string',
},
order: {
type: 'number',
defaultsTo: 0
},
lastOrder: {
columnName: 'last_order',
type: 'number',
defaultsTo: 0
},
subject: {
type: 'string',
allowNull: true
},
etymology: {
type: 'string',
allowNull: true
},
construct: {
type: 'string',
allowNull: true
},
refs: {
collection: 'LexiconWordRef',
through: 'LexiconWordRefWord',
via: 'word'
},
medias: {
collection: 'LexiconWordMedia',
via: 'word'
},
entry: {
model: 'EncycEntry'
}
},
};