Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2b40f82

Browse files
committed
script added
1 parent b2452bc commit 2b40f82

File tree

19 files changed

+299
-1
lines changed

19 files changed

+299
-1
lines changed

‎PDF-rotation-API/employees/__init__.py

Whitespace-only changes.

‎PDF-rotation-API/employees/admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.

‎PDF-rotation-API/employees/apps.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.apps import AppConfig
2+
3+
4+
class EmployeesConfig(AppConfig):
5+
default_auto_field = 'django.db.models.BigAutoField'
6+
name = 'employees'
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Generated by Django 4.0.5 on 2022年11月04日 16:42
2+
3+
from django.db import migrations, models
4+
import django.db.models.deletion
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
initial = True
10+
11+
dependencies = [
12+
]
13+
14+
operations = [
15+
migrations.CreateModel(
16+
name='Department',
17+
fields=[
18+
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19+
('title', models.CharField(max_length=100)),
20+
],
21+
),
22+
migrations.CreateModel(
23+
name='Employee',
24+
fields=[
25+
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
26+
('first_name', models.CharField(max_length=100)),
27+
('last_name', models.CharField(max_length=100)),
28+
('birthdate', models.DateField(blank=True, null=True)),
29+
('department', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='employees.department')),
30+
],
31+
),
32+
]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 4.0.5 on 2022年11月04日 17:58
2+
3+
from django.db import migrations, models
4+
import django.db.models.deletion
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('employees', '0001_initial'),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name='employee',
16+
name='department',
17+
field=models.ForeignKey(db_constraint=False, on_delete=django.db.models.deletion.CASCADE, to='employees.department'),
18+
),
19+
]

‎PDF-rotation-API/employees/migrations/__init__.py

Whitespace-only changes.

‎PDF-rotation-API/employees/models.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from django.db import models
2+
# Create your models here.
3+
class Department(models.Model):
4+
title = models.CharField(max_length=100)
5+
6+
class Employee(models.Model):
7+
first_name = models.CharField(max_length=100)
8+
last_name = models.CharField(max_length=100)
9+
department = models.ForeignKey(Department,on_delete= models.CASCADE, db_constraint=False)
10+
birthdate = models.DateField(null=True, blank=True)

‎PDF-rotation-API/employees/tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.test import TestCase
2+
3+
# Create your tests here.

‎PDF-rotation-API/employees/views.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.shortcuts import render
2+
3+
# Create your views here.

‎PDF-rotation-API/final.pdf

1.38 KB
Binary file not shown.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /