摘要:
1. djagno ORM 数据列类型 mysql djagno int interfiled 参数: null : true default : 设置默认值 max_length: 最大长度 unique: 唯一索引 联合唯一索引: class Meta: unique_together = ( 阅读全文
摘要:
- 一对一 列子: 用户表(母表): id name age 1 zekai 18 薪水表(子表): id money us_id 1 2000 1 (只能出现一次) class UserInfo(models.Model): name = models.CharField(max_length=3 阅读全文