|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.11 on 2017-12-24 15:21
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
import common.utils
|
|
|
|
from django.db import migrations, models
|
|
|
|
import uuid
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
('assets', '0001_initial'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='AssetPermission',
|
|
|
|
fields=[
|
|
|
|
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
|
|
|
|
('name', models.CharField(max_length=128, unique=True, verbose_name='Name')),
|
|
|
|
('is_active', models.BooleanField(default=True, verbose_name='Active')),
|
|
|
|
('date_expired', models.DateTimeField(default=common.utils.date_expired_default, verbose_name='Date expired')),
|
|
|
|
('created_by', models.CharField(blank=True, max_length=128, verbose_name='Created by')),
|
|
|
|
('date_created', models.DateTimeField(auto_now_add=True, verbose_name='Date created')),
|
|
|
|
('comment', models.TextField(blank=True, verbose_name='Comment')),
|
|
|
|
('asset_groups', models.ManyToManyField(blank=True, related_name='granted_by_permissions', to='assets.AssetGroup', verbose_name='Asset group')),
|
|
|
|
('assets', models.ManyToManyField(blank=True, related_name='granted_by_permissions', to='assets.Asset', verbose_name='Asset')),
|
|
|
|
('system_users', models.ManyToManyField(related_name='granted_by_permissions', to='assets.SystemUser', verbose_name='System user')),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|