暫無描述

0008_productdrawing.py 1.3KB

12345678910111213141516171819202122232425262728293031
  1. # Generated by Django 4.2 on 2025-05-06 08:47
  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. ('core', '0007_customertemplatemapping_created_at_and_more'),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='ProductDrawing',
  13. fields=[
  14. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  15. ('code_no', models.CharField(blank=True, max_length=100, null=True)),
  16. ('code_no_mks', models.CharField(blank=True, max_length=100, null=True)),
  17. ('lot_no', models.CharField(blank=True, max_length=100, null=True)),
  18. ('drawing', models.ImageField(upload_to='drawings/')),
  19. ('description', models.TextField(blank=True, null=True)),
  20. ('created_at', models.DateTimeField(auto_now_add=True)),
  21. ('updated_at', models.DateTimeField(auto_now=True)),
  22. ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
  23. ],
  24. ),
  25. ]