0002_devices.py 938 B

1234567891011121314151617181920212223242526
  1. # Generated by Django 3.2.5 on 2021-07-08 07:38
  2. from django.conf import settings
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  8. ('account', '0001_initial'),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='Devices',
  13. fields=[
  14. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  15. ('last_login_time', models.DateField(auto_now=True)),
  16. ('device_uid', models.CharField(max_length=100)),
  17. ('token', models.CharField(default='233', max_length=100)),
  18. ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='devices', to=settings.AUTH_USER_MODEL)),
  19. ],
  20. ),
  21. ]