Initial commit (Clean history)
This commit is contained in:
30
app/migrations/0016_workspace_group.py
Normal file
30
app/migrations/0016_workspace_group.py
Normal file
@@ -0,0 +1,30 @@
|
||||
# Generated by Django 4.2.4 on 2024-09-06 21:02
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('app', '0015_workspace_history_workspace_image_workspace_version_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Workspace_Group',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('deleted', models.BooleanField(default=False)),
|
||||
('share_type', models.CharField(max_length=20)),
|
||||
('create_time', models.DateTimeField(auto_now_add=True, null=True)),
|
||||
('update_time', models.DateTimeField(auto_now=True, null=True)),
|
||||
('group', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='grws', to='app.group')),
|
||||
('workspace', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='wsgr', to='app.workspace')),
|
||||
],
|
||||
options={
|
||||
'db_table': 'workspace_group',
|
||||
'unique_together': {('workspace', 'group')},
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user