Initial commit (Clean history)
This commit is contained in:
40
app/migrations/0066_apps_user_apps.py
Normal file
40
app/migrations/0066_apps_user_apps.py
Normal file
@@ -0,0 +1,40 @@
|
||||
# Generated by Django 5.1.7 on 2025-05-30 06:48
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('app', '0065_phone_otp_status'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Apps',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('code', models.CharField(max_length=30, unique=True)),
|
||||
('name', models.CharField(max_length=100)),
|
||||
('logo', models.CharField(max_length=500, null=True)),
|
||||
('link', models.CharField(max_length=500, null=True)),
|
||||
('create_time', models.DateTimeField(auto_now_add=True, null=True)),
|
||||
],
|
||||
options={
|
||||
'db_table': 'apps',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='User_Apps',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('create_time', models.DateTimeField(auto_now_add=True, null=True)),
|
||||
('apps', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.apps')),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.apps')),
|
||||
],
|
||||
options={
|
||||
'db_table': 'user_apps',
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user