2020-10-09 01:42:05 +00:00
|
|
|
import uuid
|
|
|
|
|
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
# Create your models here.
|
|
|
|
class Test(models.Model):
|
|
|
|
id = models.UUIDField('id',primary_key=True,default=uuid.uuid4)
|
|
|
|
title = models.CharField('标题',max_length=256,null=True,blank=True)
|
|
|
|
date = models.CharField('时间',max_length=256,null=True,blank=True)
|
|
|
|
code = models.CharField('公众号',max_length=256,null=True,blank=True)
|
|
|
|
content = models.TextField('正文',null=True,blank=True)
|