Coverage for apis_core/apis_entities/migrations/0001_initial.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.6.4, created at 2024-11-22 07:51 +0000

1# Generated by Django 3.1.14 on 2022-02-01 12:41 

2 

3import django.db.models.deletion 

4from django.db import migrations, models 

5 

6 

7class Migration(migrations.Migration): 

8 initial = True 

9 

10 dependencies = [ 

11 ("apis_metainfo", "0001_initial"), 

12 ] 

13 

14 operations = [ 

15 migrations.CreateModel( 

16 name="TempEntityClass", 

17 fields=[ 

18 ( 

19 "rootobject_ptr", 

20 models.OneToOneField( 

21 auto_created=True, 

22 on_delete=django.db.models.deletion.CASCADE, 

23 parent_link=True, 

24 primary_key=True, 

25 serialize=False, 

26 to="apis_metainfo.rootobject", 

27 ), 

28 ), 

29 ( 

30 "review", 

31 models.BooleanField( 

32 default=False, 

33 help_text="Should be set to True, if the data record holds up quality standards.", 

34 ), 

35 ), 

36 ("start_date", models.DateField(blank=True, null=True)), 

37 ("start_start_date", models.DateField(blank=True, null=True)), 

38 ("start_end_date", models.DateField(blank=True, null=True)), 

39 ("end_date", models.DateField(blank=True, null=True)), 

40 ("end_start_date", models.DateField(blank=True, null=True)), 

41 ("end_end_date", models.DateField(blank=True, null=True)), 

42 ( 

43 "start_date_written", 

44 models.CharField( 

45 blank=True, max_length=255, null=True, verbose_name="Start" 

46 ), 

47 ), 

48 ( 

49 "end_date_written", 

50 models.CharField( 

51 blank=True, max_length=255, null=True, verbose_name="End" 

52 ), 

53 ), 

54 ("status", models.CharField(max_length=100)), 

55 ("references", models.TextField(blank=True, null=True)), 

56 ("notes", models.TextField(blank=True, null=True)), 

57 ("published", models.BooleanField(default=False)), 

58 ("collection", models.ManyToManyField(to="apis_metainfo.Collection")), 

59 ( 

60 "source", 

61 models.ForeignKey( 

62 blank=True, 

63 null=True, 

64 on_delete=django.db.models.deletion.SET_NULL, 

65 to="apis_metainfo.source", 

66 ), 

67 ), 

68 ("text", models.ManyToManyField(blank=True, to="apis_metainfo.Text")), 

69 ], 

70 options={ 

71 "abstract": False, 

72 }, 

73 bases=("apis_metainfo.rootobject",), 

74 ), 

75 ]