_report_server/commit/30f7226d9aa1b14561d48e5309f57e811e38322f">30f7226d9a first commit %!s(int64=2) %!d(string=před) roky sortablejs 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky source-map 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky source-map-js 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky string-width 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky strip-ansi 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky sucrase 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky supports-preserve-symlinks-flag 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky tailwind-color-palette 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky tailwindcss 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky thenify 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky thenify-all 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky to-regex-range 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky tr46 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky ts-interface-checker 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky uglify-js 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky underscore 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky upper-case 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky util-deprecate 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky valid-data-url 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky web-resource-inliner 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky webidl-conversions 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky whatwg-url 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky wrap-ansi 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky wrappy 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky y18n 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky yallist 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky yaml 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky yargs 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky yargs-parser 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky .yarn-integrity 30f7226d9a first commit %!s(int64=2) %!d(string=před) roky tum/ecoloop - Gogs: Simplico Git Service

暫無描述

0001_initial.py 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Generated by Django 4.2.24 on 2025-09-21 09:40
  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. initial = True
  7. dependencies = [
  8. ('sites', '0002_alter_domain_unique'),
  9. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  10. ]
  11. operations = [
  12. migrations.CreateModel(
  13. name='Organization',
  14. fields=[
  15. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  16. ('created_at', models.DateTimeField(auto_now_add=True)),
  17. ('updated_at', models.DateTimeField(auto_now=True)),
  18. ('name', models.CharField(max_length=255)),
  19. ('code', models.CharField(max_length=32, unique=True)),
  20. ('timezone', models.CharField(default='UTC', max_length=64)),
  21. ('currency_code', models.CharField(default='USD', max_length=8)),
  22. ],
  23. options={
  24. 'abstract': False,
  25. },
  26. ),
  27. migrations.CreateModel(
  28. name='UserProfile',
  29. fields=[
  30. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  31. ('created_at', models.DateTimeField(auto_now_add=True)),
  32. ('updated_at', models.DateTimeField(auto_now=True)),
  33. ('role', models.CharField(choices=[('owner', 'Owner'), ('manager', 'Manager'), ('driver', 'Driver'), ('customer', 'Customer'), ('auditor', 'Auditor')], default='manager', max_length=16)),
  34. ('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='users', to='orgs.organization')),
  35. ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='recycle_profile', to=settings.AUTH_USER_MODEL)),
  36. ],
  37. options={
  38. 'abstract': False,
  39. },
  40. ),
  41. migrations.CreateModel(
  42. name='OrganizationSite',
  43. fields=[
  44. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  45. ('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sites', to='orgs.organization')),
  46. ('site', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='organization_site', to='sites.site')),
  47. ],
  48. ),
  49. ]