31 lines
997 B
Python
31 lines
997 B
Python
|
# Generated by Django 3.0.7 on 2020-08-01 14:52
|
||
|
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Profilo',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('immagine_profilo', models.ImageField(default='default.jpg', upload_to='')),
|
||
|
('is_online', models.BooleanField(default=False)),
|
||
|
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profili', to=settings.AUTH_USER_MODEL)),
|
||
|
],
|
||
|
options={
|
||
|
'verbose_name': 'Profilo',
|
||
|
'verbose_name_plural': 'Profili',
|
||
|
},
|
||
|
),
|
||
|
]
|