init commit
This commit is contained in:
33
hotels/migrations/0001_initial.py
Normal file
33
hotels/migrations/0001_initial.py
Normal file
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 5.1.4 on 2024-12-05 23:39
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Hotel',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=255, verbose_name='Hotel Name')),
|
||||
('pms_type', models.CharField(choices=[('bnovo', 'Bnovo'), ('travelline', 'Travel Line')], max_length=50, verbose_name='PMS Type')),
|
||||
('api_key', models.CharField(blank=True, max_length=255, null=True, verbose_name='API Key')),
|
||||
('public_key', models.CharField(blank=True, max_length=255, null=True, verbose_name='Public Key')),
|
||||
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Created At')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='UserHotel',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('hotel', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='hotels.hotel', verbose_name='Hotel')),
|
||||
],
|
||||
),
|
||||
]
|
||||
22
hotels/migrations/0002_initial.py
Normal file
22
hotels/migrations/0002_initial.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# Generated by Django 5.1.4 on 2024-12-05 23:39
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('hotels', '0001_initial'),
|
||||
('users', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='userhotel',
|
||||
name='user',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='users.user', verbose_name='User'),
|
||||
),
|
||||
]
|
||||
0
hotels/migrations/__init__.py
Normal file
0
hotels/migrations/__init__.py
Normal file
BIN
hotels/migrations/__pycache__/0001_initial.cpython-311.pyc
Normal file
BIN
hotels/migrations/__pycache__/0001_initial.cpython-311.pyc
Normal file
Binary file not shown.
BIN
hotels/migrations/__pycache__/0002_initial.cpython-311.pyc
Normal file
BIN
hotels/migrations/__pycache__/0002_initial.cpython-311.pyc
Normal file
Binary file not shown.
BIN
hotels/migrations/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
hotels/migrations/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user