I was wondering why not having an automatic datatype assigned to a FK
column instead of repeating twice the data type that has to be set...
a user table would have:
Column('user_id', Integer, primary_key=True),
and an address table refereing to a user would have:
Column('user_id', ForeignKey("users.user_id")),
Here, I don't specify that the FK column is an Integer, because some
clever mechanics would do that for me.
I suppose that this was already thougt before, but I was just wondering...
Regards,
--
Alexandre CONRAD
Column('user_id', None, ForeignKey("users.user_id"))