Coverage for tasks/migrations/0001_initial.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-05-18 16:35 +0000

1# Generated by Django 5.2.1 on 2025-05-13 14:53 

2 

3from django.db import migrations, models 

4 

5 

6class Migration(migrations.Migration): 

7 initial = True 

8 

9 dependencies = [] 

10 

11 operations = [ 

12 migrations.CreateModel( 

13 name="Task", 

14 fields=[ 

15 ( 

16 "id", 

17 models.BigAutoField( 

18 auto_created=True, 

19 primary_key=True, 

20 serialize=False, 

21 verbose_name="ID", 

22 ), 

23 ), 

24 ("title", models.CharField(max_length=255)), 

25 ("description", models.TextField(blank=True)), 

26 ("due_date", models.DateField()), 

27 ( 

28 "status", 

29 models.CharField( 

30 choices=[ 

31 ("todo", "To Do"), 

32 ("in-progress", "In Progress"), 

33 ("done", "Done"), 

34 ], 

35 default="todo", 

36 max_length=20, 

37 ), 

38 ), 

39 ("created_at", models.DateTimeField(auto_now_add=True)), 

40 ("updated_at", models.DateTimeField(auto_now=True)), 

41 ], 

42 ), 

43 ]