File indexing completed on 2026-04-27 07:41:42
0001
0002
0003 from django.db import migrations, models
0004
0005
0006 class Migration(migrations.Migration):
0007
0008 dependencies = [
0009 ('monitor_app', '0032_alter_systemagent_status'),
0010 ]
0011
0012 operations = [
0013 migrations.CreateModel(
0014 name='AIMemory',
0015 fields=[
0016 ('id', models.AutoField(primary_key=True, serialize=False)),
0017 ('username', models.CharField(db_index=True, help_text='Developer username', max_length=100)),
0018 ('session_id', models.CharField(db_index=True, help_text='Claude Code session ID', max_length=255)),
0019 ('role', models.CharField(help_text="'user' or 'assistant'", max_length=20)),
0020 ('content', models.TextField(help_text='Message content')),
0021 ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
0022 ('namespace', models.CharField(blank=True, help_text='Testbed namespace if applicable', max_length=100, null=True)),
0023 ('project_path', models.CharField(blank=True, help_text='Project directory path', max_length=500, null=True)),
0024 ],
0025 options={
0026 'db_table': 'swf_ai_memory',
0027 'ordering': ['-created_at'],
0028 'indexes': [models.Index(fields=['username', '-created_at'], name='swf_ai_memo_usernam_1c6539_idx')],
0029 },
0030 ),
0031 ]