Find an abstract class solution

now there are data tables as follows
first-level classification
cate_id
cate_name
pid |

Commodity list

goods_id
goods_name
cate_id

property sheet
attr_id
attr_name

intermediate table between goods and attributes
id
goods_id
attr_id

Classification and attribute middle table

id
cate_id
attr_id

how to design a class, the subclass can obtain the attributes of the parent class through inheritance, for example, the commodity can inherit the attributes associated with the classification and have its own attributes

Php
Jan.12,2022

Don't use inheritance!

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb26a7-4818a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb26a7-4818a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?