Skip to content

Commit

Permalink
[ ADD ] Model migration into Database
Browse files Browse the repository at this point in the history
  • Loading branch information
tavolafourcade committed May 22, 2022
1 parent 140e172 commit 414f683
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions django/CodingProject/CodingApp/migrations/0001_initial.py
@@ -0,0 +1,50 @@
# Generated by Django 4.0.4 on 2022-05-22 16:27

from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='Course',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=40)),
('course_id', models.IntegerField()),
],
),
migrations.CreateModel(
name='Professor',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=40)),
('last_name', models.CharField(max_length=40)),
('email', models.EmailField(max_length=254)),
('field', models.CharField(max_length=40)),
],
),
migrations.CreateModel(
name='Student',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=40)),
('last_name', models.CharField(max_length=40)),
('email', models.EmailField(max_length=254)),
],
),
migrations.CreateModel(
name='Task',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=30)),
('delivery_date', models.DateField()),
('delivered', models.BooleanField()),
],
),
]
Binary file not shown.
Empty file added django/CodingProject/db.sqlite3
Empty file.

0 comments on commit 414f683

Please sign in to comment.