1 | from django.db import models
|
---|
2 | from django_mysql.models import JSONField
|
---|
3 |
|
---|
4 |
|
---|
5 | class NucleusData(models.Model):
|
---|
6 | no_param_json = JSONField()
|
---|
7 | null_json = JSONField(null=True)
|
---|
8 | default_json = JSONField(default=dict)
|
---|
9 | null_n_default_json = JSONField(default=dict, null=True)
|
---|
10 |
|
---|
11 | no_param_txt = models.TextField()
|
---|
12 | null_txt = models.TextField(null=True)
|
---|
13 | default_txt = models.TextField(default="")
|
---|
14 | null_n_default_txt = models.TextField(default="xyz", null=True)
|
---|
15 | null_default_blank_txt = models.TextField(default="abc", null=True, blank=True)
|
---|
16 | new_txt = models.TextField(default="abc", null=True, blank=True)
|
---|