Replace guarded property with fillable
This commit is contained in:
parent
93c3f69aea
commit
3d97432f9d
|
@ -7,7 +7,7 @@ import src.entity.word
|
|||
|
||||
|
||||
class Reply(Model):
|
||||
__guarded__ = ['id']
|
||||
__fillable__ = ['pair_id', 'word_id', 'count']
|
||||
__timestamps__ = False
|
||||
|
||||
@belongs_to_many
|
||||
|
|
|
@ -5,7 +5,7 @@ import src.entity.chat
|
|||
|
||||
|
||||
class Word(Model):
|
||||
__guarded__ = ['id']
|
||||
__fillable__ = ['word']
|
||||
__timestamps__ = False
|
||||
|
||||
@has_many
|
||||
|
|
Loading…
Reference in New Issue