-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cập nhập luật chơi, tác giả, nhà xuất bản, năm sản xuất, trạng thái, số lượng kho và đang thuê, người thuê, chú thích tình trạng của boardgame
- Loading branch information
1 parent
7f1d80b
commit 439ddc3
Showing
5 changed files
with
82 additions
and
4 deletions.
There are no files selected for viewing
Binary file modified
BIN
+432 Bytes
(110%)
Rent_boardgame/boardgame/__pycache__/models.cpython-310.pyc
Binary file not shown.
65 changes: 65 additions & 0 deletions
65
...oardgame/migrations/0002_remove_boardgame_quantity_available_boardgame_author_and_more.py
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,65 @@ | ||
# Generated by Django 4.2.1 on 2023-06-04 17:11 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('boardgame', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='boardgame', | ||
name='quantity_available', | ||
), | ||
migrations.AddField( | ||
model_name='boardgame', | ||
name='author', | ||
field=models.CharField(blank=True, max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='boardgame', | ||
name='condition', | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='boardgame', | ||
name='producer', | ||
field=models.CharField(blank=True, max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='boardgame', | ||
name='publication_year', | ||
field=models.FloatField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='boardgame', | ||
name='quantity_in_stock', | ||
field=models.PositiveIntegerField(default=1), | ||
), | ||
migrations.AddField( | ||
model_name='boardgame', | ||
name='quantity_rented', | ||
field=models.PositiveIntegerField(default=0), | ||
), | ||
migrations.AddField( | ||
model_name='boardgame', | ||
name='rented_by', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL), | ||
), | ||
migrations.AddField( | ||
model_name='boardgame', | ||
name='rule', | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='boardgame', | ||
name='status', | ||
field=models.CharField(choices=[('rental', 'Rental'), ('in_stock', 'In Stock')], default='in_stock', max_length=10), | ||
), | ||
] |
Binary file added
BIN
+1.47 KB
...ache__/0002_remove_boardgame_quantity_available_boardgame_author_and_more.cpython-310.pyc
Binary file not shown.
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
Binary file not shown.