我需要使用Knex获得以下SQL结果: themes.title as theme_titleon subthemes.parent_id = themes.id
left join section_questions on section_questions.section_idin (themes.id, subthemes.
1使用事件ID和另一个名为tickets的表调用events,我希望它们具有事件ID和票证ID的主键。我还使用了一个PostgreSQL数据库。目前,我将其作为外键,但希望将其作为票证表中带有票证ID的主键。knex.schema.createTable('events', function (table) { table.string('