Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

one-through-many

mechanics
    id - integer
    name - string

cars
    id - integer
    model - string
    mechanic_id - integer

owners
    id - integer
    name - string
    car_id - integer
Source by laravel.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+7 =