Initial commit (Clean history)
This commit is contained in:
30
app/migrations/0208_otp.py
Normal file
30
app/migrations/0208_otp.py
Normal file
@@ -0,0 +1,30 @@
|
||||
# Generated by Django 5.1.7 on 2025-08-02 12:38
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('app', '0207_backup'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Otp',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('code', models.CharField(max_length=30, unique=True)),
|
||||
('phone', models.CharField(db_index=True, max_length=20, null=True)),
|
||||
('content', models.TextField()),
|
||||
('fee', models.IntegerField(null=True)),
|
||||
('create_time', models.DateTimeField(auto_now_add=True, null=True)),
|
||||
('update_time', models.DateTimeField(auto_now=True, null=True)),
|
||||
('status', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.task_status')),
|
||||
],
|
||||
options={
|
||||
'db_table': 'otp',
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user