-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding feat and race to the endpoints
- Loading branch information
BuildTools
committed
Aug 13, 2023
1 parent
710f7d1
commit faed207
Showing
8 changed files
with
113 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by Django 3.2.20 on 2023-08-13 01:53 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Feat', | ||
fields=[ | ||
('name', models.CharField(help_text='Name of the item.', max_length=100)), | ||
('desc', models.TextField(help_text='Description of the game content item. Markdown.')), | ||
('prerequisite_desc', models.CharField(help_text='Prerequisite for the game content item.', max_length=100)), | ||
('key', models.CharField(help_text='Unique key for the Item.', max_length=100, primary_key=True, serialize=False)), | ||
('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api_v2.document')), | ||
], | ||
options={ | ||
'verbose_name_plural': 'feats', | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Generated by Django 3.2.20 on 2023-08-13 02:16 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api_v2', '0002_feat'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Race', | ||
fields=[ | ||
('name', models.CharField(help_text='Name of the item.', max_length=100)), | ||
('desc', models.TextField(help_text='Description of the game content item. Markdown.')), | ||
('key', models.CharField(help_text='Unique key for the Item.', max_length=100, primary_key=True, serialize=False)), | ||
('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api_v2.document')), | ||
('subrace_of', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='api_v2.race')), | ||
], | ||
options={ | ||
'verbose_name_plural': 'races', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Trait', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(help_text='Name of the item.', max_length=100)), | ||
('desc', models.TextField(help_text='Description of the game content item. Markdown.')), | ||
('race', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api_v2.race')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters