added hasOne foreign keys in MySQL