Fakultas Ilmu Komputer UI

Commit 74d280bb authored by Abdul Mughni Wibisono's avatar Abdul Mughni Wibisono
Browse files

Merge branch 'mughni' into 'master'

Trying to fix heroku

See merge request !80
parents ecbcd46e 77bb31e7
Pipeline #138506 passed with stages
in 3 minutes and 58 seconds
# Generated by Django 3.2.8 on 2022-06-14 12:59
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('store', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='reviewModel',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('review_date', models.DateTimeField(default=django.utils.timezone.now)),
('rating', models.FloatField(default=0)),
('comment', models.TextField(max_length=4000)),
('game', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='store.gamemodel')),
],
),
]
# Generated by Django 3.2.8 on 2022-06-14 12:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('community', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='reviewmodel',
name='user',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
]
# Generated by Django 3.2.8 on 2022-06-14 12:59
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('password', models.CharField(max_length=128, verbose_name='password')),
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')),
('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')),
('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
('is_developer', models.BooleanField(default=False)),
('is_customer', models.BooleanField(default=False)),
('first_name', models.CharField(max_length=100)),
('last_name', models.CharField(max_length=100)),
('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
],
options={
'verbose_name': 'user',
'verbose_name_plural': 'users',
'abstract': False,
},
managers=[
('objects', django.contrib.auth.models.UserManager()),
],
),
migrations.CreateModel(
name='Customer',
fields=[
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='homepage.user')),
('username', models.CharField(max_length=50)),
],
),
migrations.CreateModel(
name='Developer',
fields=[
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='homepage.user')),
('company', models.CharField(max_length=50)),
],
),
]
# Generated by Django 3.2.8 on 2022-06-14 12:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('homepage', '0001_initial'),
('store', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='libraryModel',
fields=[
('customer', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='cust_id', serialize=False, to='homepage.customer')),
('library_games', models.ManyToManyField(related_name='library_games', to='store.gameModel')),
],
),
]
# Generated by Django 3.2.8 on 2022-06-14 12:59
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='gameModel',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200)),
('game_id', models.IntegerField()),
('genre', models.CharField(max_length=200)),
('author_game', models.CharField(max_length=200)),
('description', models.TextField()),
],
),
]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment