1- # Generated by Django 4.1.7 on 2023-03-17 08:18
1+ # Generated by Django 4.1.7 on 2023-05-05 03:32
22
33import api .models .app
44import api .models .certificate
@@ -185,6 +185,7 @@ class Migration(migrations.Migration):
185185 ('uuid' , models .UUIDField (auto_created = True , default = uuid .uuid4 , editable = False , primary_key = True , serialize = False , unique = True , verbose_name = 'UUID' )),
186186 ('created' , models .DateTimeField (auto_now_add = True )),
187187 ('updated' , models .DateTimeField (auto_now = True )),
188+ ('issuer' , models .JSONField (default = {'email' : 'anonymous@cert-manager.io' , 'key_id' : '' , 'key_secret' : '' , 'server' : 'https://acme-v02.api.letsencrypt.org/directory' })),
188189 ('https_enforced' , models .BooleanField (null = True )),
189190 ('certs_auto_enabled' , models .BooleanField (null = True )),
190191 ('app' , models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , to = 'api.app' )),
@@ -202,8 +203,7 @@ class Migration(migrations.Migration):
202203 ('id' , models .BigAutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
203204 ('created' , models .DateTimeField (auto_now_add = True )),
204205 ('updated' , models .DateTimeField (auto_now = True )),
205- ('port' , models .PositiveIntegerField (default = 5000 )),
206- ('protocol' , models .TextField (default = 'TCP' )),
206+ ('ports' , models .JSONField (default = list )),
207207 ('procfile_type' , models .TextField ()),
208208 ('app' , models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , to = 'api.app' )),
209209 ('owner' , models .ForeignKey (on_delete = django .db .models .deletion .PROTECT , to = settings .AUTH_USER_MODEL )),
@@ -214,6 +214,28 @@ class Migration(migrations.Migration):
214214 'unique_together' : {('app' , 'procfile_type' )},
215215 },
216216 ),
217+ migrations .CreateModel (
218+ name = 'Route' ,
219+ fields = [
220+ ('id' , models .BigAutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
221+ ('created' , models .DateTimeField (auto_now_add = True )),
222+ ('updated' , models .DateTimeField (auto_now = True )),
223+ ('kind' , models .CharField (choices = [('TLSRoute' , 'TCP' ), ('TCPRoute' , 'TCP' ), ('UDPRoute' , 'UDP' ), ('GRPCRoute' , 'HTTPS' ), ('HTTPRoute' , 'HTTP/HTTPS' )], max_length = 15 )),
224+ ('name' , models .CharField (db_index = True , max_length = 63 )),
225+ ('port' , models .PositiveIntegerField ()),
226+ ('rules' , models .JSONField (default = list )),
227+ ('routable' , models .BooleanField (default = True )),
228+ ('parent_refs' , models .JSONField (default = list )),
229+ ('procfile_type' , models .TextField ()),
230+ ('app' , models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , to = 'api.app' )),
231+ ('owner' , models .ForeignKey (on_delete = django .db .models .deletion .PROTECT , to = settings .AUTH_USER_MODEL )),
232+ ],
233+ options = {
234+ 'ordering' : ['-created' ],
235+ 'get_latest_by' : 'created' ,
236+ 'unique_together' : {('app' , 'name' )},
237+ },
238+ ),
217239 migrations .CreateModel (
218240 name = 'Resource' ,
219241 fields = [
@@ -273,13 +295,30 @@ class Migration(migrations.Migration):
273295 'unique_together' : {('owner' , 'fingerprint' )},
274296 },
275297 ),
298+ migrations .CreateModel (
299+ name = 'Gateway' ,
300+ fields = [
301+ ('id' , models .BigAutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
302+ ('created' , models .DateTimeField (auto_now_add = True )),
303+ ('updated' , models .DateTimeField (auto_now = True )),
304+ ('name' , models .CharField (db_index = True , max_length = 63 )),
305+ ('ports' , models .JSONField (default = list )),
306+ ('app' , models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , to = 'api.app' )),
307+ ('owner' , models .ForeignKey (on_delete = django .db .models .deletion .PROTECT , to = settings .AUTH_USER_MODEL )),
308+ ],
309+ options = {
310+ 'ordering' : ['-created' ],
311+ 'get_latest_by' : 'created' ,
312+ 'unique_together' : {('app' , 'name' )},
313+ },
314+ ),
276315 migrations .CreateModel (
277316 name = 'AppSettings' ,
278317 fields = [
279318 ('uuid' , models .UUIDField (auto_created = True , default = uuid .uuid4 , editable = False , primary_key = True , serialize = False , unique = True , verbose_name = 'UUID' )),
280319 ('created' , models .DateTimeField (auto_now_add = True )),
281320 ('updated' , models .DateTimeField (auto_now = True )),
282- ('routable' , models .BooleanField (null = True )),
321+ ('routable' , models .BooleanField (default = True )),
283322 ('autoscale' , models .JSONField (blank = True , default = dict )),
284323 ('label' , models .JSONField (blank = True , default = dict )),
285324 ('app' , models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , to = 'api.app' )),
@@ -292,3 +331,4 @@ class Migration(migrations.Migration):
292331 },
293332 ),
294333 ]
334+
0 commit comments