HEX
Server: nginx/1.24.0
System: Linux nowruzgan 6.8.0-57-generic #59-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 15 17:40:59 UTC 2025 x86_64
User: babak (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
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'
    }
  },
};