Skip to content

Commit

Permalink
Add frequently used prompt function.
Browse files Browse the repository at this point in the history
  • Loading branch information
WongSaang committed Mar 9, 2023
1 parent 1282bd6 commit a2747e6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions chat/migrations/0004_prompt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated by Django 4.1.7 on 2023-03-09 07:26

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('chat', '0003_setting'),
]

operations = [
migrations.CreateModel(
name='Prompt',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('prompt', models.TextField()),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
]

0 comments on commit a2747e6

Please sign in to comment.