diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/libary.models.py" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/libary.models.py" new file mode 100644 index 0000000000000000000000000000000000000000..057a19e405d599c88d1c2cc77e0cf970dbf5e919 --- /dev/null +++ "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/libary.models.py" @@ -0,0 +1,15 @@ +from django.db import models + +# Create your models here. +class Student(models.Model): + student_id = models.AutoField(primary_key=True, db_column="id") + name = models.CharField(max_length=200) + + +class Book(models.Model): + book_id = models.AutoField(primary_key=True, db_column="id") + book_name = models.CharField(max_length=200) + +class BorrowRecord(Student, Book): + _id = models.AutoField(primary_key=True, db_column="id") + borrow_time = models.DateTimeField(auto_now_add=True) \ No newline at end of file diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/myblog.models.py" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/myblog.models.py" new file mode 100644 index 0000000000000000000000000000000000000000..5406c5e02dca09ed359aa8d5430cdca895bcfa41 --- /dev/null +++ "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/myblog.models.py" @@ -0,0 +1,27 @@ +from django.db import models + +# Create your models here. +class Person(models.Model): + name = models.CharField(max_length=191) + email = models.EmailField() + update_time = models.DateTimeField(auto_now=True) + create_time = models.DateTimeField(auto_now_add=True) + + null_test = models.CharField(max_length=200, null=True) + blank_test = models.CharField(max_length=200, blank=True) + + class Meta: + abstract = True + +class Reader(Person): + whether_vip = models.BooleanField(default=False) + test = models.BooleanField(default=True) + + class Meta: + db_table = "reader" + managed = False + + +class Writer(Person): + pass + diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/polls.models.py" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/polls.models.py" new file mode 100644 index 0000000000000000000000000000000000000000..8536e1dcf6792637ed5fd16446a51ecb4b9d1a21 --- /dev/null +++ "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/polls.models.py" @@ -0,0 +1,15 @@ +from django.db import models + +# Create your models here. + +class Question(models.Model): + question_text = models.CharField(max_length=200) + pub_date = models.DateTimeField('date published') + + def __str__(self): + return f"id:{self.id}, {self.question_text}" + +class Choice(models.Model): + question = models.ForeignKey(Question, on_delete=models.CASCADE) + choice_text = models.CharField(max_length=200) + votes = models.IntegerField(default=0) diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/\345\256\236\344\276\213\347\273\203\344\271\2401.png" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/\345\256\236\344\276\213\347\273\203\344\271\2401.png" new file mode 100644 index 0000000000000000000000000000000000000000..1f436e974b9069c1efa9aa8fab23898967351f53 Binary files /dev/null and "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/\345\256\236\344\276\213\347\273\203\344\271\2401.png" differ diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/\345\256\236\344\276\213\347\273\203\344\271\2402.png" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/\345\256\236\344\276\213\347\273\203\344\271\2402.png" new file mode 100644 index 0000000000000000000000000000000000000000..ae9ed4b69b941a4bd9a8544d31470dd185da581c Binary files /dev/null and "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/\345\256\236\344\276\213\347\273\203\344\271\2402.png" differ diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/\345\256\236\344\276\213\347\273\203\344\271\2403.png" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/\345\256\236\344\276\213\347\273\203\344\271\2403.png" new file mode 100644 index 0000000000000000000000000000000000000000..4b50fdc9f9e5b22aa7f36d458141f09a59460665 Binary files /dev/null and "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/\345\256\236\344\276\213\347\273\203\344\271\2403.png" differ diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/\347\273\203\344\271\2401.png" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/\347\273\203\344\271\2401.png" new file mode 100644 index 0000000000000000000000000000000000000000..e948f185d9b6fd506a882777559cba4b108d807b Binary files /dev/null and "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\233\233\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\272\214\350\212\202\350\257\276_\344\275\234\344\270\232/\347\273\203\344\271\2401.png" differ