From 7376d13f676f2f9051e97f7caf37fd195d185dbd Mon Sep 17 00:00:00 2001 From: RankracerBR Date: Tue, 20 Feb 2024 17:35:21 -0300 Subject: [PATCH] Migrations --- reservas/core/migrations/0001_initial.py | 77 ++++++++++++++++++ reservas/core/migrations/__init__.py | 0 .../__pycache__/0001_initial.cpython-310.pyc | Bin 0 -> 3188 bytes .../__pycache__/0001_initial.cpython-311.pyc | Bin 0 -> 4282 bytes ...2_alter_registrotoken_nome.cpython-310.pyc | Bin 0 -> 641 bytes .../0002_registrotoken.cpython-310.pyc | Bin 0 -> 854 bytes .../0002_reserva_data.cpython-310.pyc | Bin 0 -> 623 bytes .../0003_reserva_tickets.cpython-310.pyc | Bin 0 -> 600 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 0 -> 171 bytes .../__pycache__/__init__.cpython-311.pyc | Bin 0 -> 142 bytes 10 files changed, 77 insertions(+) create mode 100644 reservas/core/migrations/0001_initial.py create mode 100644 reservas/core/migrations/__init__.py create mode 100644 reservas/core/migrations/__pycache__/0001_initial.cpython-310.pyc create mode 100644 reservas/core/migrations/__pycache__/0001_initial.cpython-311.pyc create mode 100644 reservas/core/migrations/__pycache__/0002_alter_registrotoken_nome.cpython-310.pyc create mode 100644 reservas/core/migrations/__pycache__/0002_registrotoken.cpython-310.pyc create mode 100644 reservas/core/migrations/__pycache__/0002_reserva_data.cpython-310.pyc create mode 100644 reservas/core/migrations/__pycache__/0003_reserva_tickets.cpython-310.pyc create mode 100644 reservas/core/migrations/__pycache__/__init__.cpython-310.pyc create mode 100644 reservas/core/migrations/__pycache__/__init__.cpython-311.pyc diff --git a/reservas/core/migrations/0001_initial.py b/reservas/core/migrations/0001_initial.py new file mode 100644 index 00000000..f7295e30 --- /dev/null +++ b/reservas/core/migrations/0001_initial.py @@ -0,0 +1,77 @@ +# Generated by Django 5.0.1 on 2024-02-20 17:05 + +import datetime +import django.contrib.auth.models +import django.contrib.auth.validators +import django.db.models.deletion +import django.utils.timezone +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('auth', '0012_alter_user_first_name_max_length'), + ] + + operations = [ + migrations.CreateModel( + name='Mesa', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('numero', models.IntegerField(unique=True)), + ('preco_aluguel', models.IntegerField()), + ], + ), + migrations.CreateModel( + name='RegistroToken', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('nome', models.CharField(blank=True, default='', max_length=50)), + ('email', models.EmailField(max_length=254)), + ('is_verified', models.BooleanField(default=False)), + ('token', models.CharField(default='token', max_length=100)), + ], + ), + migrations.CreateModel( + name='Usuario', + 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')), + ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), + ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), + ('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')), + ('idade', models.IntegerField(default=0)), + ('imagem', models.ImageField(default='Imagens', upload_to='imgs/')), + ('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='Reserva', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('tickets', models.IntegerField(default=0)), + ('data', models.DateField(default=datetime.date.today)), + ('mesa', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.mesa')), + ('usuario', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ], + ), + ] diff --git a/reservas/core/migrations/__init__.py b/reservas/core/migrations/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/reservas/core/migrations/__pycache__/0001_initial.cpython-310.pyc b/reservas/core/migrations/__pycache__/0001_initial.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ab90df8025fc5349e3bc4a37ffac84897863445b GIT binary patch literal 3188 zcmZuzOLyG16(%{H_l%^-wk*qz!^BRS$%B&Jrfu9bv8+ep#&TRex|r&e2bznaFy;_r zfV3>GdQQ95wyQ3jWq(c=-C&zdw9Ga+d0YV0!>1aaA#pD*zI$rTqHkw`#s#QXAL%byv$)lE%2%Z;o62mg{`( zfDhGwI#8v}QTrd2ejD5^r&l{heCKh`RSikAjHR*cd8##Lu^<`asZ_Nw2b#!%mOKBu zj>LWZ%NL&GP^a&LgBG~`3V5;G_i1%hg9`YxK5BrAPZerVKk|njG?3RsPV>k`szvKB zn_oLaFRnoQ$TRCY7q08#x)!dRf@zpJs^Hq!kkf`)xMYwnBh^7YR}3|0r03u&%pZA( zUOh#>b|LzLk-rWLa6`+(>qvKvx~P&`uG(~zC!96T^L;--6(B) zf}Gb8^X8~NdSev8pJCJ3xb-TZzB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al8GIJzx4Knp;Z+j{o zjlC9tyk(?)>4&9liew7g^Pql5B$?@EX4=V2lf-2np?y2=#-%xY))_ua66adUK{Axv zKI#nRo}c{lgmd;98Jcen%{xQ$Byk;14#`X~^%FaxZ==qo8_uPlIhXE}uQZaWHZxTx zQzZ$#-4llW2V-m>K;AOazI?Jjv~`nxOxZiPxtO^OJWaV}E#IkXdHz%4{=+qIGJ%nU z1m4{&=ul@Kt>)cj`EH#V=uGj#m+#iSXmzMlw+ip5<^sn{p?PbdHbZdl7} z-X?Xz*((MKh_4I;^0oLPY60mxR%KT-%c>-ltzJ6S>(2TxX*)pU7ZJK^ITicleog^d z&4JYk@FlMWrt2&c;AB086f&5=^in{6DG1G>AgVGHuWvYrFkN&G!_Is@e=4=ry;i24 zIb3SryRPrf(T3D^Exr%zYLECT5wcUG?0J|1o~gm~w6ppo4ccYDBD5U0mR7Y$U&ff7 zX*6(B6(N^nU&>HQNppii%6Fu^7?g>#u>#zn1+)u|-X%mC%9o}`cN|Y~A~uSHmD<*! z>^AsMupi7lB6JMD&B3$ggGc9^H+r#BLvz?Ih8At_n`3R1mv52KkIFYky}lT*r_9~7 zq9)DlOEjd;o>XxO`JXg0Dzm%!?BbhG$o&HfIZH%(on{G7_&uKf$*)KJq)I~pYh{<+ iE}V`x8*ej$x0`RX$8=7}pKmpKLBAREk>h^yQ2Ygz&$2WC literal 0 HcmV?d00001 diff --git a/reservas/core/migrations/__pycache__/0002_registrotoken.cpython-310.pyc b/reservas/core/migrations/__pycache__/0002_registrotoken.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..104b62ef200176f65ec738455e56f3d5327d3013 GIT binary patch literal 854 zcmY*XOK;RL5VoD{J6pD;aNrC`d#Or~2%*v!;?N3}a#=;P+?{FaZ5~@YsVG;t?hoOw z@DqIH)Dw4*TECt)x$L)ut~=n638YT z*hBzN_$0t^*75XY}VM$5JD zGORSdNedn?1o01Gm6Cnpdi!@-Qp(}9FzBN7_4QX$=epD?b;CnUv@K0>RGeY%godL% zCqC?qLl>#4EacRnDiPdZZgi&1r98t+*RyEoZ~c|%F3=no7G553F!P*PYVk*Hzm7jspKSb5Pft}9?-bK2 z!@RWdo=%mOhe)><%Er5;KCiGO&D@#%q~iM*7Sqf&ue2Mmmi@)J@_ontcpo#Wirt+j%gX6mXy5#!uKJ7+(L42OI4@ptIlw6kTbHc-+$sa&e*R=Zkr- zPL!gPrR3}-0}1L21BIedpJl0lzhy=8o6fM)LWI1t+tGMC^e!yA0kCy-%-yyHkt1@q zAwX7gV5I=Q<)uW`Bp^WIqDe7pmQ4=ol0$MSDSHPN)GH0kSO0rZLsbtWhSg@Xd8ln~ zy)|u_j_7dwWP$?YO~FG7cxI;77m@~yL+Rdh7}Si(nZ*`Pi&e<<{9fyjYfW`iixjW4 zKA%h*Ya;{PVGr2X7TqXFLCBr~oWyU8GScO-@i_C4QGfI{wu(_m`~c=69@lgKFsQ7O>@D`p!?`S Wtj?b7_wY#zm#29E literal 0 HcmV?d00001 diff --git a/reservas/core/migrations/__pycache__/0003_reserva_tickets.cpython-310.pyc b/reservas/core/migrations/__pycache__/0003_reserva_tickets.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..aacc30732d360e1f8878dc92bc15f76a7200e7ac GIT binary patch literal 600 zcmYjO&1w`u5bnR(nH>_)pgw{yAYsv)h(y$ghXhf)34G-^|C^Qyla-$_-5!`m~{hS>*`p#9Ww$4blf9K$Vv{Z z6u_6fl&DroT!6Dx3JQ`-4zo*1l?+l^lZE-wzxlLG)q}-wcd=MJ))pPwGo!(H6VfdT zsc-5p=$$2@tl%L9JTYVI3rS2PJKdWOgPL-3(qIe6#XMwsde=JST2tTHBHeeiJ{?UP zdm{o|V-MKZ4LU1me#l+`9L5<|M!55~_qaqmJ%xN&AKCM0ycUQe@ z>d$7ZUJdowVeega*tEv!_ZwxddhMIj5xsF$)Lq>;U6BJ%{yVUhyubcx<5xzv-5#Zk z38}7CBDml=SAVkWseW9jFo%`tm%~1MnuJXBr{WFI&FwzT3E8uaCC{U&F7CJ^9>~AP CJE4C7 literal 0 HcmV?d00001 diff --git a/reservas/core/migrations/__pycache__/__init__.cpython-310.pyc b/reservas/core/migrations/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6e4b8244300f81d78dafb50625613c5ffb547376 GIT binary patch literal 171 zcmd1j<>g`kf@fC`rh@3lAOaaM0yz#qT+9L_QW%06G#UL?G8BP?5yUS)XRDad;?$zz zn1IaWjKtCym;B_?+|<01;uyEgoW$bzpj4o2Sz>XFYe{BdX=(|Om7HIc8k3uuUX)mp mnV(l26Ca2KczG$)edA&F%ytrVE_P@t1R09 literal 0 HcmV?d00001 diff --git a/reservas/core/migrations/__pycache__/__init__.cpython-311.pyc b/reservas/core/migrations/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0457e99ce7d4a0351fcca43a543cb74fce67c10f GIT binary patch literal 142 zcmZ3^%ge<81kbJ>Oa;-8K?DpiLK&agfQ;!3DGb33nv8xc8H$*I{LdiCUyAz4`6;PD zq9|2AH#5B`u_QA;uUJ1mJ~J<~BtBlRpz;@oO>TZlX-=wL5i3v!$joAXAn}2jk&*EO L1B@tQ28sayUC|#* literal 0 HcmV?d00001