Description
I have a table where the Primary Key is:
PRIMARY KEY (`user_id`,`partner_id`)
I have to config the table using this primary key. How could I do it?
Example code
adminPartnerTable := table.NewDefaultTable(
table.Config{
Driver: os.Getenv("DB_DRIVER"),
Connection: table.DefaultConnectionName,
CanAdd: true,
Editable: true,
Deletable: true,
Exportable: false,
PrimaryKey: table.PrimaryKey{
Type: db.Int,
Name: "(user_id, partner_id)",
},
})