This commit is contained in:
ilkeral
2025-07-21 13:49:36 +03:00
commit 342f1314c7
57 changed files with 9297 additions and 0 deletions

View File

@ -0,0 +1,54 @@
# Generated by Django 5.1.5 on 2025-01-23 05:38
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='SSHCredential',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('hostname', models.CharField(max_length=255)),
('username', models.CharField(max_length=100)),
('password', models.CharField(max_length=100)),
('port', models.IntegerField(default=22)),
('is_online', models.BooleanField(default=False)),
('last_check', models.DateTimeField(auto_now=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
],
),
migrations.CreateModel(
name='Project',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('folder_name', models.CharField(max_length=255)),
('path', models.CharField(max_length=500)),
('created_at', models.DateTimeField(auto_now_add=True)),
('ssh_credential', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ssh_manager.sshcredential')),
],
),
migrations.CreateModel(
name='SSHLog',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('log_type', models.CharField(choices=[('connection', 'Bağlantı Kontrolü'), ('command', 'Komut Çalıştırma'), ('folder', 'Klasör İşlemi')], max_length=20)),
('command', models.TextField()),
('output', models.TextField()),
('status', models.BooleanField(default=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
('ssh_credential', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ssh_manager.sshcredential')),
],
options={
'ordering': ['-created_at'],
},
),
]