I want to access primary key, so that the admin can change the primary key to whatever they want.
class TheDataBase(database.Model):
id = database.Column(database.Integer, primary_key=True, autoincrement=True)
name = database.Column(database.String(20), nullable=False)
descrip = database.Column(database.Text, default="N/A")
I have tried adding a column like this but this gives error
name_id = database.Column(database.Integer, default=id)
is anyway to do something similar to this? I don't want to define another database if its possible. I hope I made my question clear