Project

General

Profile

Download (2.11 KB) Statistics
| Branch: | Tag: | Revision:

root / uauth / organization / migrations / 0001_initial.py @ ae3961c3

1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

    
4
from django.db import models, migrations
5

    
6

    
7
class Migration(migrations.Migration):
8

    
9
    dependencies = [
10
    ]
11

    
12
    operations = [
13
        migrations.CreateModel(
14
            name='Organization',
15
            fields=[
16
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
17
                ('name', models.CharField(max_length=128, verbose_name='Name')),
18
                ('slug', models.SlugField(max_length=128)),
19
                ('hotspot_url', models.CharField(max_length=128, null=True, verbose_name='Hotspot url', blank=True)),
20
                ('hotspot_type', models.CharField(max_length=32, verbose_name='Hotspot type', choices=[(b'pfsense', b'pfSense'), (b'meraki', b'Cisco Meraki')])),
21
            ],
22
            options={
23
            },
24
            bases=(models.Model,),
25
        ),
26
        migrations.CreateModel(
27
            name='OrganizationMember',
28
            fields=[
29
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
30
                ('epti', models.CharField(max_length=128)),
31
                ('entity_id', models.CharField(max_length=256)),
32
                ('customer', models.ForeignKey(to='organization.Organization')),
33
            ],
34
            options={
35
            },
36
            bases=(models.Model,),
37
        ),
38
        migrations.CreateModel(
39
            name='TemporaryAccount',
40
            fields=[
41
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
42
                ('username', models.CharField(max_length=128, verbose_name='Username')),
43
                ('creation_date', models.DateTimeField(auto_now_add=True)),
44
                ('password', models.CharField(max_length=128, verbose_name='Password')),
45
                ('voucher', models.CharField(max_length=128, verbose_name='Voucher')),
46
                ('organization', models.ForeignKey(to='organization.Organization')),
47
            ],
48
            options={
49
            },
50
            bases=(models.Model,),
51
        ),
52
    ]
(1-1/2)