sqldiff 0.5.0

primitives to auto-generate SQL schema migrations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
openapi: 3.0.3
info:
  title: ''
  version: ''
servers:
  - url: https://www.example.com
paths:
  /clients:
    get:
      operationId: getClients
      parameters:
        - in: query
          name: limit
          schema:
            type: integer
          style: form
        - in: query
          name: offset
          schema:
            type: integer
          style: form
        - in: query
          name: sortby
          schema:
            type: array
            items:
              type: string
          style: form
        - in: query
          name: sortorder
          schema:
            type: array
            items:
              type: string
          style: form
        - in: query
          name: status
          schema:
            type: array
            items:
              type: string
          style: form
        - in: query
          name: types
          schema:
            type: array
            items:
              type: string
          style: form
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetClientsResponse'
  /home:
    get:
      operationId: getHome
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetHomeResponse'
  /swtraining/freetrainings:
    get:
      operationId: getSwtrainingFreetrainings
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSwtrainingFreetrainingsResponse'
  /activities/list:
    get:
      operationId: getActivities
      parameters:
        - in: query
          name: limit
          schema:
            type: integer
          style: form
        - in: query
          name: offset
          schema:
            type: integer
          style: form
        - in: query
          name: orderby
          schema:
            type: string
          style: form
        - in: query
          name: ordertype
          schema:
            type: string
          style: form
        - in: query
          name: type
          schema:
            type: string
          style: form
        - in: query
          name: action_date
          schema:
            type: string
          style: form
        - in: query
          name: est_complete_date
          schema:
            type: string
          style: form
        - in: query
          name: employee_name
          schema:
            type: string
          style: form
        - in: query
          name: activity
          schema:
            type: string
          style: form
        - in: query
          name: activity_name
          schema:
            type: string
          style: form
        - in: query
          name: client
          schema:
            type: string
          style: form
        - in: query
          name: client_name
          schema:
            type: string
          style: form
        - in: query
          name: invoice
          schema:
            type: string
          style: form
        - in: query
          name: invoice_name
          schema:
            type: string
          style: form
        - in: query
          name: description
          schema:
            type: string
          style: form
        - in: query
          name: notes
          schema:
            type: string
          style: form
        - in: query
          name: billing_code_name
          schema:
            type: string
          style: form
        - in: query
          name: time_billing_taxable_name
          schema:
            type: string
          style: form
        - in: query
          name: group_name
          schema:
            type: string
          style: form
        - in: query
          name: filter
          schema:
            type: string
          style: form
        - in: query
          name: view
          schema:
            type: string
          style: form
        - in: query
          name: employee
          schema:
            type: integer
          style: form
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetActivitiesResponse'
  /employeelist:
    get:
      operationId: getEmployees
      parameters:
        - in: query
          name: sw_user
          schema:
            type: integer
          style: form
        - in: query
          name: active
          schema:
            type: string
          style: form
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmployeesResponse'
  /orderlist:
    get:
      operationId: getOrders
      parameters:
        - in: query
          name: limit
          schema:
            type: integer
          style: form
        - in: query
          name: offset
          schema:
            type: integer
          style: form
        - in: query
          name: orderby
          schema:
            type: string
          style: form
        - in: query
          name: ordertype
          schema:
            type: string
          style: form
        - in: query
          name: filter
          schema:
            type: string
          style: form
        - in: query
          name: active
          schema:
            type: boolean
          style: form
        - in: query
          name: name
          schema:
            type: string
          style: form
        - in: query
          name: search_term
          schema:
            type: string
          style: form
        - in: query
          name: client
          schema:
            type: string
          style: form
        - in: query
          name: client_name
          schema:
            type: string
          style: form
        - in: query
          name: order_date
          schema:
            type: string
          style: form
        - in: query
          name: order_date_from
          schema:
            type: string
          style: form
        - in: query
          name: order_date_to
          schema:
            type: string
          style: form
        - in: query
          name: vendor
          schema:
            type: string
          style: form
        - in: query
          name: vendor_name
          schema:
            type: string
          style: form
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOrdersResponse'
  /activities/list/notifications:
    get:
      operationId: getActivitiesNotifications
      parameters:
        - in: query
          name: is_read
          schema:
            type: boolean
          style: form
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetActivitiesNotificationsResponse'
components:
  securitySchemes:
    Session:
      type: apiKey
      in: cookie
      name: sessid
  schemas:
    Client:
      type: object
      properties:
        active:
          type: boolean
        address_code_1_id:
          type: integer
        address_code_1_name:
          type: string
        address_code_2_id:
          type: integer
        address_code_2_name:
          type: string
        address_id:
          type: string
        client_deposit_balance:
          type: string
        client_deposits_applied:
          type: string
        client_deposits_received:
          type: string
        client_payments_applied:
          type: string
        client_sidemark:
          type: string
        copy_address:
          type: boolean
        copy_purchase:
          type: string
        created_at:
          type: integer
        custom_city:
          type: string
        custom_country:
          type: string
        custom_foreign_id:
          type: string
        custom_name:
          type: string
        custom_postal_code:
          type: string
        custom_state:
          type: string
        custom_street_address_1:
          type: string
        custom_street_address_2:
          type: string
        designer_id:
          type: integer
        designer_name:
          type: string
        email:
          type: string
        fax_number:
          type: string
        fax_number_ext:
          type: string
        id:
          type: integer
        invoices_visible_by_default:
          type: boolean
        is_specify_only:
          type: boolean
        last_modified_at:
          type: integer
        mailing_city:
          type: string
        mailing_country:
          type: string
        mailing_name:
          type: string
        mailing_postal_code:
          type: string
        mailing_state:
          type: string
        mailing_street_address_1:
          type: string
        mailing_street_address_2:
          type: string
        mark_up_deposit_percent:
          type: string
        mobile_number:
          type: string
        notes:
          type: string
        paypal_payments_enabled:
          type: boolean
        payscape_ach_payments_enabled:
          type: boolean
        payscape_payments_enabled:
          type: boolean
        pinterest:
          type: string
        primary_number:
          type: string
        primary_number_ext:
          type: string
        proposals_visible_by_default:
          type: boolean
        related_client_id:
          type: integer
        related_client_name:
          type: string
        representative_id:
          type: integer
        representative_name:
          type: string
        resale_number:
          type: string
        room_list_id:
          type: integer
        room_list_name:
          type: string
        sales_tax_deposit_percent:
          type: string
        selling_deposit_percent:
          type: string
        selling_discount:
          type: integer
        selling_mark_up_percent:
          type: string
        staging_extension_percent:
          type: string
        stripe_ach_payments_enabled:
          type: boolean
        stripe_credit_card_payments_enabled:
          type: boolean
        tax_location_id:
          type: integer
        tax_location_name:
          type: string
        type_id:
          type: integer
        type_name:
          type: string
        use_client_address:
          type: boolean
        website_url:
          type: string
    GetClientsResponse:
      type: object
      properties:
        list:
          type: array
          items:
            $ref: '#/components/schemas/Client'
        total:
          type: integer
    GetHomeResponse:
      type: object
      properties:
        account_link_company_address:
          type: string
        account_link_company_address_2:
          type: string
        account_link_company_city:
          type: string
        account_link_company_postal_code:
          type: string
        account_link_company_state:
          type: string
        account_link_website:
          type: string
        account_name:
          type: string
        email:
          type: string
        mobilephone:
          type: string
        name:
          type: string
        phone:
          type: string
        title:
          type: string
    GetSwtrainingFreetrainingsResponse:
      type: array
    Activity:
      type: object
      additionalProperties: true
    GetActivitiesResponse:
      type: object
      properties:
        List:
          type: array
          items:
            $ref: '#/components/schemas/Activity'
        TotalFound:
          type: integer
        TotalQuantity:
          type: string
    Employee:
      type: object
      properties:
        active:
          type: boolean
        administrator:
          type: boolean
        createddate:
          type: integer
        email:
          type: string
        email_signature:
          type: string
        group_c:
          type: integer
        id:
          type: integer
        name:
          type: string
        swuser_lookup_is_active:
          type: boolean
        swuser_lookup_name:
          type: string
    GetEmployeesResponse:
      type: object
      properties:
        List:
          type: array
          items:
            $ref: '#/components/schemas/Employee'
        TotalFound:
          type: integer
    Order:
      type: object
      properties:
        acknowledged_date:
          type: integer
        active:
          type: boolean
        client:
          type: integer
        client_name:
          type: string
        emailed_date:
          type: integer
        id:
          type: integer
        linked_vendor_id:
          type: integer
        name:
          type: string
        order_date:
          type: integer
        purchase_deposit:
          type: string
        ship_to:
          type: integer
        total_purchase:
          type: string
        vendor:
          type: integer
        vendor_name:
          type: string
        vendor_payments:
          type: string
        vendor_total_balance:
          type: string
    GetOrdersResponse:
      type: object
      properties:
        List:
          type: array
          items:
            $ref: '#/components/schemas/Order'
        TotalFound:
          type: integer
    Notification:
      type: object
      additionalProperties: true
    GetActivitiesNotificationsResponse:
      type: object
      properties:
        List:
          type: array
          items:
            $ref: '#/components/schemas/Notification'
        TotalFound:
          type: integer
security:
  - Session:
      - Session