Spaces:
Sleeping
Sleeping
| from django.db import models | |
| # Create your models here. | |
| class ShareUrl(models.Model): | |
| TYPE_CHOICES = [ | |
| ('开发', '开发'), | |
| ('测试', '测试'), | |
| ('管理', '管理'), | |
| ('其它', '其它'), | |
| ] | |
| type = models.CharField(max_length=255, choices=TYPE_CHOICES) | |
| title = models.TextField() | |
| url = models.CharField(max_length=255) | |
| content = models.TextField() | |
| user = models.CharField(max_length=255) | |
| ip = models.CharField(max_length=255) | |
| memo = models.TextField(blank=True, null=True) | |
| datetime = models.DateTimeField(auto_now_add=True) | |
| class Meta: | |
| db_table = 'shareurl' | |
| def __str__(self): | |
| return self.title |