Add django rest framework and basic plant model
- Adds django rest framework to requirements - Adds basic plant model with id and name fields - Adds CRUD endpoints to interact with plant objects
This commit is contained in:
parent
aedd224a63
commit
bb307d34d2
12 changed files with 68 additions and 2 deletions
21
backend/right_tree/api/migrations/0001_initial.py
Normal file
21
backend/right_tree/api/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Generated by Django 3.2.8 on 2021-10-06 18:32
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Plant',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.TextField()),
|
||||
],
|
||||
),
|
||||
]
|
0
backend/right_tree/api/migrations/__init__.py
Normal file
0
backend/right_tree/api/migrations/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue