Add TablePrimaryKey to syncer.

This commit is contained in:
Yang Luo
2021-12-19 23:33:22 +08:00
parent bf642b35d4
commit db56f54b8c
10 changed files with 75 additions and 8 deletions

View File

@ -43,6 +43,7 @@ type Syncer struct {
Password string `xorm:"varchar(100)" json:"password"`
Database string `xorm:"varchar(100)" json:"database"`
Table string `xorm:"varchar(100)" json:"table"`
TablePrimaryKey string `xorm:"varchar(100)" json:"tablePrimaryKey"`
TableColumns []*TableColumn `xorm:"mediumtext" json:"tableColumns"`
AffiliationTable string `xorm:"varchar(100)" json:"affiliationTable"`
AvatarBaseUrl string `xorm:"varchar(100)" json:"avatarBaseUrl"`