Re: [sqlalchemy] sqlalchemy foreignkey relation with inheritance

2017-09-22 Thread Simon King
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.

Re: [sqlalchemy] sqlalchemy foreignkey relation with inheritance

2017-09-22 Thread Simon King
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

[sqlalchemy] sqlalchemy foreignkey relation with inheritance

2017-09-22 Thread John Smith
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.