module.exports = class extends think.Model {
  get tableName() {
    return 'sample_type';
  }

  /**
   * 获取启用的样本类型列表
   */
  async getEnabledList() {
    return this.where({ status: 1, is_deleted: 0 })
      .order('sort DESC, id ASC')
      .select();
  }
};
