mirror of
https://github.com/lemeow125/InfoTech-Backend.git
synced 2025-05-16 19:38:45 +08:00
Added day and timeslots
This commit is contained in:
parent
1b02c8f3c6
commit
00c8e6f4f4
17 changed files with 76 additions and 99 deletions
24
infotech/daytimes/migrations/0001_initial.py
Normal file
24
infotech/daytimes/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Generated by Django 4.2 on 2023-04-22 06:04
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='DayTime',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.TextField()),
|
||||
('day', models.TextField(choices=[('Monday', 'Monday'), ('Tuesday', 'Tuesday'), ('Wednesday', 'Wednesday'), ('Thursday', 'Thursday'), ('Friday', 'Friday'), ('Saturday', 'Saturday'), ('Sunday', 'Sunday')])),
|
||||
('time_start', models.TimeField(max_length=40)),
|
||||
('time_end', models.TimeField(max_length=20)),
|
||||
],
|
||||
),
|
||||
]
|
0
infotech/daytimes/migrations/__init__.py
Normal file
0
infotech/daytimes/migrations/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue