parent
823f340fc5
commit
14b0860449
6 changed files with 141 additions and 1 deletions
@ -0,0 +1,23 @@ |
|||||||
|
# Generated by Django 4.2.3 on 2023-07-08 02:10 |
||||||
|
|
||||||
|
from django.db import migrations, models |
||||||
|
import django.db.models.deletion |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('orm_demo', '0001_initial'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.CreateModel( |
||||||
|
name='CardInfo', |
||||||
|
fields=[ |
||||||
|
('id', models.AutoField(primary_key=True, serialize=False, verbose_name='银行卡编码')), |
||||||
|
('card_no', models.CharField(max_length=20, verbose_name='卡号')), |
||||||
|
('bank', models.CharField(max_length=10, verbose_name='银行')), |
||||||
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='orm_demo.baseuserinfo')), |
||||||
|
], |
||||||
|
), |
||||||
|
] |
@ -0,0 +1,21 @@ |
|||||||
|
# Generated by Django 4.2.3 on 2023-07-08 02:12 |
||||||
|
|
||||||
|
from django.db import migrations |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('orm_demo', '0002_cardinfo'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.AlterModelTableComment( |
||||||
|
name='cardinfo', |
||||||
|
table_comment='员工银行卡信息', |
||||||
|
), |
||||||
|
migrations.AlterModelTable( |
||||||
|
name='cardinfo', |
||||||
|
table='orm_card_info', |
||||||
|
), |
||||||
|
] |
@ -0,0 +1,19 @@ |
|||||||
|
# Generated by Django 4.2.3 on 2023-07-08 03:44 |
||||||
|
|
||||||
|
from django.db import migrations, models |
||||||
|
import django.db.models.deletion |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('orm_demo', '0003_alter_cardinfo_table_comment_alter_cardinfo_table'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.AlterField( |
||||||
|
model_name='cardinfo', |
||||||
|
name='user', |
||||||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user_card', to='orm_demo.baseuserinfo'), |
||||||
|
), |
||||||
|
] |
Binary file not shown.
Loading…
Reference in new issue