Skip to content

Commit

Permalink
update django models
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-lixakov committed Nov 18, 2023
1 parent be6f27e commit 8a75686
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
26 changes: 13 additions & 13 deletions app/main/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.7 on 2023-11-11 09:48
# Generated by Django 4.2.7 on 2023-11-18 08:58

from django.db import migrations, models
import django.db.models.deletion
Expand All @@ -23,7 +23,7 @@ class Migration(migrations.Migration):
('contact_number', models.CharField(max_length=12)),
],
options={
'db_table': 'Cinema',
'db_table': 'cinema',
'managed': False,
},
),
Expand All @@ -34,7 +34,7 @@ class Migration(migrations.Migration):
('country_id', models.IntegerField(primary_key=True, serialize=False)),
],
options={
'db_table': 'Country',
'db_table': 'country',
'managed': False,
},
),
Expand All @@ -48,7 +48,7 @@ class Migration(migrations.Migration):
('email', models.CharField(blank=True, max_length=50, null=True)),
],
options={
'db_table': 'Customer',
'db_table': 'customer',
'managed': False,
},
),
Expand All @@ -61,7 +61,7 @@ class Migration(migrations.Migration):
('base_price', models.FloatField()),
],
options={
'db_table': 'Film',
'db_table': 'film',
'managed': False,
},
),
Expand All @@ -72,7 +72,7 @@ class Migration(migrations.Migration):
('name', models.CharField(max_length=30)),
],
options={
'db_table': 'Genre',
'db_table': 'genre',
'managed': False,
},
),
Expand All @@ -83,7 +83,7 @@ class Migration(migrations.Migration):
('seating_capacity', models.IntegerField()),
],
options={
'db_table': 'Hall',
'db_table': 'hall',
'managed': False,
},
),
Expand All @@ -96,7 +96,7 @@ class Migration(migrations.Migration):
('class_coefficient', models.FloatField()),
],
options={
'db_table': 'Seat',
'db_table': 'seat',
'managed': False,
},
),
Expand All @@ -112,7 +112,7 @@ class Migration(migrations.Migration):
('status', models.CharField(max_length=30)),
],
options={
'db_table': 'Seller',
'db_table': 'seller',
'managed': False,
},
),
Expand All @@ -124,7 +124,7 @@ class Migration(migrations.Migration):
('end_time', models.DateTimeField()),
],
options={
'db_table': 'Showtime',
'db_table': 'showtime',
'managed': False,
},
),
Expand All @@ -137,7 +137,7 @@ class Migration(migrations.Migration):
('status', models.CharField(max_length=30)),
],
options={
'db_table': 'Ticket',
'db_table': 'ticket',
'managed': False,
},
),
Expand All @@ -147,7 +147,7 @@ class Migration(migrations.Migration):
('film', models.OneToOneField(on_delete=django.db.models.deletion.DO_NOTHING, primary_key=True, serialize=False, to='main.film')),
],
options={
'db_table': 'Film_genre',
'db_table': 'film_genre',
'managed': False,
},
),
Expand All @@ -157,7 +157,7 @@ class Migration(migrations.Migration):
('film', models.OneToOneField(on_delete=django.db.models.deletion.DO_NOTHING, primary_key=True, serialize=False, to='main.film')),
],
options={
'db_table': 'Production_country',
'db_table': 'production_country',
'managed': False,
},
),
Expand Down
24 changes: 12 additions & 12 deletions app/main/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Cinema(models.Model):

class Meta:
managed = False
db_table = 'Cinema'
db_table = 'cinema'


class Country(models.Model):
Expand All @@ -27,7 +27,7 @@ class Country(models.Model):

class Meta:
managed = False
db_table = 'Country'
db_table = 'country'


class Customer(models.Model):
Expand All @@ -39,7 +39,7 @@ class Customer(models.Model):

class Meta:
managed = False
db_table = 'Customer'
db_table = 'customer'


class Film(models.Model):
Expand All @@ -50,7 +50,7 @@ class Film(models.Model):

class Meta:
managed = False
db_table = 'Film'
db_table = 'film'


class FilmGenre(models.Model):
Expand All @@ -59,7 +59,7 @@ class FilmGenre(models.Model):

class Meta:
managed = False
db_table = 'Film_genre'
db_table = 'film_genre'
unique_together = (('film', 'genre'),)


Expand All @@ -69,7 +69,7 @@ class Genre(models.Model):

class Meta:
managed = False
db_table = 'Genre'
db_table = 'genre'


class Hall(models.Model):
Expand All @@ -79,7 +79,7 @@ class Hall(models.Model):

class Meta:
managed = False
db_table = 'Hall'
db_table = 'hall'


class ProductionCountry(models.Model):
Expand All @@ -88,7 +88,7 @@ class ProductionCountry(models.Model):

class Meta:
managed = False
db_table = 'Production_country'
db_table = 'production_country'
unique_together = (('film', 'country'),)


Expand All @@ -101,7 +101,7 @@ class Seat(models.Model):

class Meta:
managed = False
db_table = 'Seat'
db_table = 'seat'


class Seller(models.Model):
Expand All @@ -116,7 +116,7 @@ class Seller(models.Model):

class Meta:
managed = False
db_table = 'Seller'
db_table = 'seller'


class Showtime(models.Model):
Expand All @@ -128,7 +128,7 @@ class Showtime(models.Model):

class Meta:
managed = False
db_table = 'Showtime'
db_table = 'showtime'


class Ticket(models.Model):
Expand All @@ -143,4 +143,4 @@ class Ticket(models.Model):

class Meta:
managed = False
db_table = 'Ticket'
db_table = 'ticket'

0 comments on commit 8a75686

Please sign in to comment.