-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b476602
commit 960509c
Showing
16 changed files
with
446 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
__pycache__ | ||
db.sqlite3 | ||
migrations/ | ||
# migrations/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Generated by Django 4.2.16 on 2024-09-16 04:54 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Player', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=100)), | ||
('game_id', models.CharField(max_length=50)), | ||
('zone_id', models.CharField(max_length=50)), | ||
('mabar_count', models.IntegerField(default=0)), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='MabarSession', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('session_date', models.DateTimeField(auto_now_add=True)), | ||
('is_completed', models.BooleanField(default=False)), | ||
('player', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mabar.player')), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='Donation', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('amount', models.DecimalField(decimal_places=2, max_digits=10)), | ||
('mabar_gained', models.IntegerField()), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('player', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mabar.player')), | ||
], | ||
), | ||
] |
26 changes: 26 additions & 0 deletions
26
mabar/migrations/0002_remove_mabarsession_player_delete_donation_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 4.2.16 on 2024-09-16 05:00 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mabar', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='mabarsession', | ||
name='player', | ||
), | ||
migrations.DeleteModel( | ||
name='Donation', | ||
), | ||
migrations.DeleteModel( | ||
name='MabarSession', | ||
), | ||
migrations.DeleteModel( | ||
name='Player', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 4.2.16 on 2024-09-16 05:16 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('mabar', '0002_remove_mabarsession_player_delete_donation_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Mabar', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('donate_name', models.CharField(max_length=100)), | ||
('nickname', models.CharField(blank=True, max_length=100, null=True)), | ||
('id_user', models.CharField(max_length=50)), | ||
('zone_user', models.CharField(max_length=50)), | ||
('jumlah_game', models.IntegerField(default=1)), | ||
('catatan', models.TextField(blank=True, null=True)), | ||
('status', models.CharField(choices=[('antri', 'Dalam Antrian'), ('salah_id', 'Salah ID User'), ('kurang', 'Donasi Kurang'), ('done', 'Done')], default='antri', max_length=10)), | ||
('date_created', models.DateTimeField(auto_now_add=True)), | ||
('is_vvip', models.BooleanField(default=False)), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 4.2.16 on 2024-09-16 05:21 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mabar', '0003_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='mabar', | ||
name='is_done', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='status', | ||
field=models.CharField(choices=[('antri', 'Dalam Antrian'), ('salah_id', 'Salah ID User'), ('kurang', 'Donasi Kurang')], default='antri', max_length=10), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 4.2.16 on 2024-09-16 05:25 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mabar', '0004_mabar_is_done_alter_mabar_status'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='mabar', | ||
options={'ordering': ['date_created']}, | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
mabar/migrations/0006_alter_mabar_id_user_alter_mabar_zone_user.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 4.2.16 on 2024-09-16 05:28 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mabar', '0005_alter_mabar_options'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='id_user', | ||
field=models.IntegerField(max_length=20), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='zone_user', | ||
field=models.IntegerField(blank=True, max_length=50, null=True), | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
mabar/migrations/0007_alter_mabar_id_user_alter_mabar_zone_user.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 4.2.16 on 2024-09-16 05:29 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mabar', '0006_alter_mabar_id_user_alter_mabar_zone_user'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='id_user', | ||
field=models.IntegerField(), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='zone_user', | ||
field=models.IntegerField(blank=True, null=True), | ||
), | ||
] |
67 changes: 67 additions & 0 deletions
67
mabar/migrations/0008_alter_mabar_options_alter_mabar_catatan_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Generated by Django 4.2.16 on 2024-09-16 05:57 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mabar', '0007_alter_mabar_id_user_alter_mabar_zone_user'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='mabar', | ||
options={'ordering': ['date_created'], 'verbose_name': 'Mabar Record', 'verbose_name_plural': 'Mabar Records'}, | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='catatan', | ||
field=models.TextField(blank=True, null=True, verbose_name='Catatan'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='date_created', | ||
field=models.DateTimeField(auto_now_add=True, verbose_name='Date Created'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='donate_name', | ||
field=models.CharField(max_length=100, verbose_name='Nama Pendonasi'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='id_user', | ||
field=models.IntegerField(verbose_name='ID User'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='is_done', | ||
field=models.BooleanField(default=False, verbose_name='Is Done'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='is_vvip', | ||
field=models.BooleanField(default=False, verbose_name='Is VVIP'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='jumlah_game', | ||
field=models.IntegerField(default=1, verbose_name='Jumlah Game'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='nickname', | ||
field=models.CharField(blank=True, max_length=100, null=True, verbose_name='Nickname'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='status', | ||
field=models.CharField(choices=[('antri', 'Dalam Antrian'), ('salah_id', 'Salah ID User'), ('kurang', 'Donasi Kurang')], default='antri', max_length=10, verbose_name='Status'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='zone_user', | ||
field=models.IntegerField(blank=True, null=True, verbose_name='Zone User'), | ||
), | ||
] |
52 changes: 52 additions & 0 deletions
52
mabar/migrations/0009_alter_mabar_options_mabar_telah_digunakan_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Generated by Django 4.2.16 on 2024-09-16 08:33 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mabar', '0008_alter_mabar_options_alter_mabar_catatan_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='mabar', | ||
options={'ordering': ['-date_created'], 'verbose_name': 'Mabar Record', 'verbose_name_plural': 'Mabar Records'}, | ||
), | ||
migrations.AddField( | ||
model_name='mabar', | ||
name='telah_digunakan', | ||
field=models.IntegerField(default=0, verbose_name='Telah Digunakan'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='date_created', | ||
field=models.DateTimeField(auto_now_add=True, verbose_name='Tanggal Dibuat'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='donate_name', | ||
field=models.CharField(max_length=100, verbose_name='Pendonasi'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='id_user', | ||
field=models.IntegerField(verbose_name='ID'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='jumlah_game', | ||
field=models.IntegerField(default=1, verbose_name='Jumlah'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='status', | ||
field=models.CharField(choices=[('antri', 'Dalam Antrian'), ('in_mabar', 'Sedang Mabar'), ('prepare', 'Persiapan'), ('salah_id', 'Salah ID User'), ('kurang', 'Donasi Kurang'), ('done', 'Selesai')], default='antri', max_length=10, verbose_name='Status'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='zone_user', | ||
field=models.IntegerField(blank=True, null=True, verbose_name='Zone'), | ||
), | ||
] |
43 changes: 43 additions & 0 deletions
43
mabar/migrations/0010_alter_mabar_catatan_alter_mabar_status_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Generated by Django 4.2.16 on 2024-09-16 11:18 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mabar', '0009_alter_mabar_options_mabar_telah_digunakan_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='catatan', | ||
field=models.TextField(blank=True, default='Dalam antrian... Harap selalu pantau update status dan catatan, yaa!!', null=True, verbose_name='Catatan'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='status', | ||
field=models.CharField(choices=[('antri', 'Dalam Antrian'), ('salah_id', 'Salah ID User'), ('kurang', 'Donasi Kurang'), ('prepare', 'Persiapan'), ('in_mabar', 'Sedang Mabar'), ('done', 'Selesai')], default='antri', max_length=10, verbose_name='Status'), | ||
), | ||
migrations.AlterField( | ||
model_name='mabar', | ||
name='telah_digunakan', | ||
field=models.IntegerField(default=0, verbose_name='Digunakan'), | ||
), | ||
migrations.CreateModel( | ||
name='BonusSkin', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('hero_digunakan', models.CharField(max_length=100, verbose_name='Hero Digunakan')), | ||
('skin_request', models.CharField(max_length=100, verbose_name='Skin Request')), | ||
('terkirim', models.BooleanField(default=False, verbose_name='Terkirim')), | ||
('mabar', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mabar.mabar', verbose_name='ID User')), | ||
], | ||
options={ | ||
'verbose_name': 'Bonus Skin', | ||
'verbose_name_plural': 'Bonus Skins', | ||
}, | ||
), | ||
] |
25 changes: 25 additions & 0 deletions
25
mabar/migrations/0011_bonusskin_date_created_bonusskin_date_terkirim.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 4.2.16 on 2024-09-16 11:30 | ||
|
||
from django.db import migrations, models | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mabar', '0010_alter_mabar_catatan_alter_mabar_status_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='bonusskin', | ||
name='date_created', | ||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now, verbose_name='Tanggal Dibuat'), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='bonusskin', | ||
name='date_terkirim', | ||
field=models.DateTimeField(blank=True, null=True, verbose_name='Tanggal Terkirim'), | ||
), | ||
] |
Oops, something went wrong.