On Fri, Sep 22, 2017 at 9:42 AM, Simon King wrote:
> On Fri, Sep 22, 2017 at 8:18 AM, John Smith wrote:
>> I have the following database schema:
>>
>> Table "Parent":
>> 1. id - primary key identifier.
>> 2. type - polymorphic_identity.
>> 3.
On Fri, Sep 22, 2017 at 8:18 AM, John Smith wrote:
> I have the following database schema:
>
> Table "Parent":
> 1. id - primary key identifier.
> 2. type - polymorphic_identity.
> 3. name - string data column.
>
> Table "Child" - inherits Parent:
> 1. id - primary key
I have the following database schema:
*Table "Parent"*:
1. id - primary key identifier.
2. type - polymorphic_identity.
3. name - string data column.
*Table "Child"* - inherits Parent:
1. id - primary key identifier.
2. parent_id - foreignkey to Parent.
3. category - string data column.