i've finally found the answer
it appears that i have to add
on items_name model:
any = db.relationship('items', backref='item_name', lazy=True)
and on items model :
item_code= db.Column(db.String,db.ForeignKey('item_name.name')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…