Skip to content

Commit

Permalink
fix: corrected the fillable arrays inline with production db
Browse files Browse the repository at this point in the history
  • Loading branch information
sriramkanakam87 committed Dec 2, 2024
1 parent f93caa5 commit beadcb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/Models/Molecule.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,16 @@ class Molecule extends Model implements Auditable
* @var array<int, string>
*/
protected $fillable = [
'inchi',
'standard_inchi',
'inchi_key',
'standard_inchi_key',
'canonical_smiles',
'sugar_free_smiles',
'molecular_formula',
'identifier',
'name',
'cas',
'synonyms',
'iupac_name',
'murcko_framework',
'murko_framework',
'structural_comments',

'name_trust_level',
Expand All @@ -53,7 +50,8 @@ class Molecule extends Model implements Auditable
'has_stereo',
'is_tautomer',
'is_parent',
'is_placeholder'];
'is_placeholder',
];

/**
* The attributes that should be cast.
Expand Down
4 changes: 4 additions & 0 deletions app/Models/Properties.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ class Properties extends Model implements Auditable
'chemical_sub_class',
'chemical_super_class',
'direct_parent_classification',
'np_classifier_pathway',
'np_classifier_superclass',
'np_classifier_class',
'np_classifier_is_glycoside',
];

/**
Expand Down

0 comments on commit beadcb8

Please sign in to comment.