first commit
This commit is contained in:
28
dashboard/migrations/0006_area_mesin_area.py
Normal file
28
dashboard/migrations/0006_area_mesin_area.py
Normal file
@@ -0,0 +1,28 @@
|
||||
# Generated by Django 4.2.30 on 2026-09-09 14:09
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('dashboard', '0005_mesin_token'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Area',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('nama_area', models.CharField(max_length=100, unique=True)),
|
||||
('keterangan', models.TextField(blank=True, null=True)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='mesin',
|
||||
name='area',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='mesin_list', to='dashboard.area'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user