开发者

What do you name tables that have both a class and an instance version?

开发者 https://www.devze.com 2023-02-07 19:52 出处:网络
For exampl开发者_如何学运维e, I have a vehicle class (id, year, make, model) and a vehicle instance (id, vehicle_id, vin). Can\'t figure out what to name them to differentiate the two. Suggestions?I w

For exampl开发者_如何学运维e, I have a vehicle class (id, year, make, model) and a vehicle instance (id, vehicle_id, vin). Can't figure out what to name them to differentiate the two. Suggestions?


I would just call it what it is, which is a model year:

VehicleModel

Vehicle


I would use vehicle_model for the "class" table, and vehicle for the other one.


What about VehicleTypes for the class and Vehicles for the instances?

0

精彩评论

暂无评论...
验证码 换一张
取 消