1 关联字段与外键约束没有必然的联系(建管理字段是为了进行查询,建约束是为了不出现脏数据) 2 默认情况,关联关系建好以后,外键约束就自然建立了 3 实际工作中,外键约束一般不建(影响效率),都是人为约束(代码约束) -db_constraint=False 4 表模型和数据库表的对应,不要直接修改表(这是可以的,但是不建议),要修改表模型,同步到表中