Skip to content

Commit

Permalink
add migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Jun 17, 2024
1 parent c25f9ec commit edee487
Showing 1 changed file with 106 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Generated by Django 5.0.6 on 2024-06-17 22:09

import breathecode.utils.validators.language
import datetime
import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('admissions', '0064_academy_legal_name'),
('mentorship', '0028_mentorshipsession_questions_and_answers'),
]

operations = [
migrations.AddField(
model_name='mentorshipservice',
name='video_provider',
field=models.CharField(blank=True,
choices=[('DAILY', 'Daily'), ('GOOGLE_MEET', 'Google Meet')],
default=None,
max_length=15),
),
migrations.AlterField(
model_name='mentorshipservice',
name='allow_mentee_to_extend',
field=models.BooleanField(blank=True,
default=None,
help_text='If true, mentees will be able to extend mentorship session'),
),
migrations.AlterField(
model_name='mentorshipservice',
name='allow_mentors_to_extend',
field=models.BooleanField(blank=True,
default=None,
help_text='If true, mentors will be able to extend mentorship session'),
),
migrations.AlterField(
model_name='mentorshipservice',
name='duration',
field=models.DurationField(blank=True,
default=None,
help_text='Default duration for mentorship sessions of this service'),
),
migrations.AlterField(
model_name='mentorshipservice',
name='language',
field=models.CharField(blank=True,
default=None,
help_text='ISO 639-1 language code + ISO 3166-1 alpha-2 country code, e.g. en-US',
max_length=5,
validators=[breathecode.utils.validators.language.validate_language_code]),
),
migrations.AlterField(
model_name='mentorshipservice',
name='max_duration',
field=models.DurationField(
blank=True,
default=None,
help_text='Maximum allowed duration or extra time, make it 0 for unlimited meetings'),
),
migrations.AlterField(
model_name='mentorshipservice',
name='missed_meeting_duration',
field=models.DurationField(
blank=True,
default=None,
help_text="Duration that will be paid when the mentee doesn't come to the session"),
),
migrations.CreateModel(
name='AcademyMentorshipSettings',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('duration',
models.DurationField(default=datetime.timedelta(seconds=3600),
help_text='Default duration for mentorship sessions of this service')),
('max_duration',
models.DurationField(
default=datetime.timedelta(seconds=7200),
help_text='Maximum allowed duration or extra time, make it 0 for unlimited meetings')),
('missed_meeting_duration',
models.DurationField(
default=datetime.timedelta(seconds=600),
help_text="Duration that will be paid when the mentee doesn't come to the session")),
('language',
models.CharField(default='en',
help_text='ISO 639-1 language code + ISO 3166-1 alpha-2 country code, e.g. en-US',
max_length=5,
validators=[breathecode.utils.validators.language.validate_language_code])),
('allow_mentee_to_extend',
models.BooleanField(default=True,
help_text='If true, mentees will be able to extend mentorship session')),
('allow_mentors_to_extend',
models.BooleanField(default=True,
help_text='If true, mentors will be able to extend mentorship session')),
('video_provider',
models.CharField(choices=[('DAILY', 'Daily'), ('GOOGLE_MEET', 'Google Meet')],
default='GOOGLE_MEET',
max_length=15)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('academy', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='admissions.academy')),
],
),
]

0 comments on commit edee487

Please sign in to comment.