go-gorm how to express many2many with additional columns
问题 I want to express the following tables in GORM: CREATE TABLE indexes ( id INTEGER PRIMARY KEY, name VARCHAR ) CREATE TABLE services ( id INTEGER PRIMARY KEY, name VARCHAR ) CREATE TABLE index_service ( index_id INTEGER REFERENCES indexes(id), service_id INTEGER REFERENCES services(id), write_active INTEGER, PRIMARY KEY (index_id, service_id) ) After reading through documentations and questions on stack overflow. I still cannot find an answer on how to express the additional column write