37 lines
1.4 KiB
Python
37 lines
1.4 KiB
Python
# Generated by Django 4.2.1 on 2023-07-23 05:20
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import uuid
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('cuser', '0002_roletype_cuserrole'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Workspace',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
|
('name', models.CharField(max_length=15)),
|
|
('expire', models.DateTimeField(blank=True, null=True)),
|
|
('desc', models.CharField(blank=True, max_length=30, null=True)),
|
|
('online_order_active', models.BooleanField(default=False)),
|
|
('online_order_open', models.BooleanField(default=True)),
|
|
('is_active', models.BooleanField(default=True)),
|
|
('uuid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
|
|
('cuser_role_owner', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='workspace', to='cuser.cuserrole')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
),
|
|
]
|