From 78294cb6a3964633424c8ccb1c782964554b4768 Mon Sep 17 00:00:00 2001 From: Modulos Date: Tue, 9 May 2017 16:37:03 +0200 Subject: [PATCH] Add inital migration --- opennebula_api/migrations/0001_initial.py | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 opennebula_api/migrations/0001_initial.py diff --git a/opennebula_api/migrations/0001_initial.py b/opennebula_api/migrations/0001_initial.py new file mode 100644 index 00000000..78747cd2 --- /dev/null +++ b/opennebula_api/migrations/0001_initial.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.4 on 2017-05-09 14:36 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='VirtualMachine', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('opennebula_id', models.IntegerField()), + ], + ), + migrations.CreateModel( + name='VirtualMachineTemplate', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('opennebula_id', models.IntegerField()), + ('base_price', models.FloatField()), + ('memory_price', models.FloatField()), + ('core_price', models.FloatField()), + ('disk_size_price', models.FloatField()), + ], + ), + migrations.AddField( + model_name='virtualmachine', + name='template', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='opennebula_api.VirtualMachineTemplate'), + ), + ]