Skip to content

Commit

Permalink
完成转账操作、交易记录查询的相关操作api,简单修改了数据库的model
Browse files Browse the repository at this point in the history
  • Loading branch information
LeChatelier-Lenz committed Jun 11, 2024
1 parent 976bca5 commit 406cc16
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 0 deletions.
13 changes: 13 additions & 0 deletions backend/bank_site/bank_app/migrations/0006_auto_20240611_1723.py
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 = [
]
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 backend/bank_site/bank_app/migrations/0008_account_phone_num.py
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),
),
]
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),
),
]

0 comments on commit 406cc16

Please sign in to comment.