mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.2 KiB
31 lines
1.2 KiB
# Generated by Django 2.2.5 on 2019-10-16 08:38 |
|
|
|
from django.conf import settings |
|
from django.db import migrations, models |
|
import django.db.models.deletion |
|
import uuid |
|
|
|
|
|
class Migration(migrations.Migration): |
|
|
|
dependencies = [ |
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|
('assets', '0041_gathereduser'), |
|
] |
|
|
|
operations = [ |
|
migrations.CreateModel( |
|
name='FavoriteAsset', |
|
fields=[ |
|
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), |
|
('created_by', models.CharField(blank=True, max_length=32, null=True, verbose_name='Created by')), |
|
('date_created', models.DateTimeField(auto_now_add=True, null=True, verbose_name='Date created')), |
|
('date_updated', models.DateTimeField(auto_now=True, verbose_name='Date updated')), |
|
('asset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assets.Asset')), |
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), |
|
], |
|
options={ |
|
'unique_together': {('user', 'asset')}, |
|
}, |
|
), |
|
]
|
|
|