-
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.
完成转账操作、交易记录查询的相关操作api,简单修改了数据库的model
- Loading branch information
1 parent
976bca5
commit 406cc16
Showing
4 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
backend/bank_site/bank_app/migrations/0006_auto_20240611_1723.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,13 @@ | ||
# Generated by Django 5.0.6 on 2024-06-11 09:23 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('bank_app', '0005_remove_blacklist_manager_id_and_more'), | ||
] | ||
|
||
operations = [ | ||
] |
24 changes: 24 additions & 0 deletions
24
backend/bank_site/bank_app/migrations/0007_account_user_id_alter_account_identity_card.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,24 @@ | ||
# Generated by Django 5.0.6 on 2024-06-11 09:24 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('bank_app', '0006_auto_20240611_1723'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='account', | ||
name='user_id', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='accounts', to='bank_app.online_user'), | ||
), | ||
migrations.AlterField( | ||
model_name='account', | ||
name='identity_card', | ||
field=models.CharField(max_length=18, unique=True), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
backend/bank_site/bank_app/migrations/0008_account_phone_num.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,18 @@ | ||
# Generated by Django 5.0.6 on 2024-06-11 09:36 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('bank_app', '0007_account_user_id_alter_account_identity_card'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='account', | ||
name='phone_num', | ||
field=models.CharField(default='10086', max_length=20), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
backend/bank_site/bank_app/migrations/0009_alter_account_identity_card.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,18 @@ | ||
# Generated by Django 5.0.6 on 2024-06-11 09:54 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('bank_app', '0008_account_phone_num'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='account', | ||
name='identity_card', | ||
field=models.CharField(max_length=18), | ||
), | ||
] |