codegenta 0.0.8

A model code generator from database table using rustorm ORM
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
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
//! WARNING: This file is generated, derived from table bazaar.orders, DO NOT EDIT

use chrono::datetime::DateTime;
use chrono::offset::utc::UTC;
use gen::column;
use gen::schema;
use gen::table;
use rustc_serialize::json::Json;
use rustc_serialize::json::ToJson;
use rustorm::dao::Dao;
use rustorm::dao::IsDao;
use rustorm::dao::Type;
use rustorm::dao::Value;
use rustorm::query::Operand;
use rustorm::table::Column;
use rustorm::table::IsTable;
use rustorm::table::Table;
use uuid::Uuid;
use gen::bazaar::OrderLine;



#[derive(RustcEncodable)]
#[derive(Debug, Clone)]
pub struct Orders {
    /// primary
    /// default: 'uuid_generate_v4()'
    /// not nullable 
    /// db data type: uuid
    pub order_id: Uuid,
    /// db data type: double precision
    pub amount_refunded: Option<f64>,
    /// db data type: double precision
    pub amount_tendered: Option<f64>,
    /// The cart from which this order was created from
    /// db data type: uuid
    pub cart_id: Option<Uuid>,
    /// default: '0.00'
    /// db data type: double precision
    pub charges_amount: Option<f64>,
    /// For recognization purposes, this is the name shown to the seller
    /// db data type: character varying
    pub customer_name: Option<String>,
    /// db data type: timestamp with time zone
    pub date_approved: Option<DateTime<UTC>>,
    /// db data type: timestamp with time zone
    pub date_invoiced: Option<DateTime<UTC>>,
    /// default: 'now()'
    /// db data type: timestamp with time zone
    pub date_ordered: Option<DateTime<UTC>>,
    /// db data type: double precision
    pub grand_total_amount: Option<f64>,
    /// if the order from the buyer is approved by the seller
    /// default: 'false'
    /// db data type: boolean
    pub is_approved: Option<bool>,
    /// determined whether the order has been confirmed by the person who ordered it
    /// default: 'false'
    /// db data type: boolean
    pub is_confirmed: Option<bool>,
    /// default: 'false'
    /// db data type: boolean
    pub is_invoiced: Option<bool>,
    /// default: 'true'
    /// db data type: boolean
    pub is_tax_included: Option<bool>,
    /// default: 'false'
    /// db data type: boolean
    pub processed: Option<bool>,
    /// default: 'false'
    /// db data type: boolean
    pub processing: Option<bool>,
    /// db data type: integer
    pub total_items: Option<i32>,
    /// default: 'true'
    /// not nullable 
    /// --inherited-- 
    /// db data type: boolean
    pub active: bool,
    /// --inherited-- 
    /// db data type: uuid
    pub client_id: Option<Uuid>,
    /// default: 'now()'
    /// not nullable 
    /// --inherited-- 
    /// db data type: timestamp with time zone
    pub created: DateTime<UTC>,
    /// --inherited-- 
    /// db data type: uuid
    pub created_by: Option<Uuid>,
    /// --inherited-- 
    /// db data type: character varying
    pub description: Option<String>,
    /// --inherited-- 
    /// db data type: text
    pub help: Option<String>,
    /// --inherited-- 
    /// db data type: character varying
    pub name: Option<String>,
    /// --inherited-- 
    /// db data type: uuid
    pub organization_id: Option<Uuid>,
    /// --inherited-- 
    /// db data type: double precision
    pub priority: Option<f64>,
    /// default: 'now()'
    /// not nullable 
    /// --inherited-- 
    /// db data type: timestamp with time zone
    pub updated: DateTime<UTC>,
    /// --inherited-- 
    /// db data type: uuid
    pub updated_by: Option<Uuid>,

    /// has many
    pub order_line: Vec<OrderLine>,
}



impl IsDao for Orders {
    fn from_dao(dao: &Dao) -> Self {
        Orders {
            organization_id: dao.get_opt(column::organization_id),
            client_id: dao.get_opt(column::client_id),
            created: dao.get(column::created),
            created_by: dao.get_opt(column::created_by),
            updated: dao.get(column::updated),
            updated_by: dao.get_opt(column::updated_by),
            priority: dao.get_opt(column::priority),
            name: dao.get_opt(column::name),
            description: dao.get_opt(column::description),
            help: dao.get_opt(column::help),
            active: dao.get(column::active),
            order_id: dao.get(column::order_id),
            customer_name: dao.get_opt(column::customer_name),
            total_items: dao.get_opt(column::total_items),
            grand_total_amount: dao.get_opt(column::grand_total_amount),
            charges_amount: dao.get_opt(column::charges_amount),
            processing: dao.get_opt(column::processing),
            processed: dao.get_opt(column::processed),
            is_confirmed: dao.get_opt(column::is_confirmed),
            is_tax_included: dao.get_opt(column::is_tax_included),
            date_ordered: dao.get_opt(column::date_ordered),
            is_invoiced: dao.get_opt(column::is_invoiced),
            date_invoiced: dao.get_opt(column::date_invoiced),
            is_approved: dao.get_opt(column::is_approved),
            date_approved: dao.get_opt(column::date_approved),
            amount_tendered: dao.get_opt(column::amount_tendered),
            amount_refunded: dao.get_opt(column::amount_refunded),
            cart_id: dao.get_opt(column::cart_id),
            order_line: vec![],
        }
    }

    fn to_dao(&self) -> Dao {
        let mut dao = Dao::new();
        match self.organization_id {
            Some(ref _value) => dao.set(column::organization_id, _value),
            None => dao.set_null(column::organization_id)
        }
        match self.client_id {
            Some(ref _value) => dao.set(column::client_id, _value),
            None => dao.set_null(column::client_id)
        }
        dao.set(column::created, &self.created);
        match self.created_by {
            Some(ref _value) => dao.set(column::created_by, _value),
            None => dao.set_null(column::created_by)
        }
        dao.set(column::updated, &self.updated);
        match self.updated_by {
            Some(ref _value) => dao.set(column::updated_by, _value),
            None => dao.set_null(column::updated_by)
        }
        match self.priority {
            Some(ref _value) => dao.set(column::priority, _value),
            None => dao.set_null(column::priority)
        }
        match self.name {
            Some(ref _value) => dao.set(column::name, _value),
            None => dao.set_null(column::name)
        }
        match self.description {
            Some(ref _value) => dao.set(column::description, _value),
            None => dao.set_null(column::description)
        }
        match self.help {
            Some(ref _value) => dao.set(column::help, _value),
            None => dao.set_null(column::help)
        }
        dao.set(column::active, &self.active);
        dao.set(column::order_id, &self.order_id);
        match self.customer_name {
            Some(ref _value) => dao.set(column::customer_name, _value),
            None => dao.set_null(column::customer_name)
        }
        match self.total_items {
            Some(ref _value) => dao.set(column::total_items, _value),
            None => dao.set_null(column::total_items)
        }
        match self.grand_total_amount {
            Some(ref _value) => dao.set(column::grand_total_amount, _value),
            None => dao.set_null(column::grand_total_amount)
        }
        match self.charges_amount {
            Some(ref _value) => dao.set(column::charges_amount, _value),
            None => dao.set_null(column::charges_amount)
        }
        match self.processing {
            Some(ref _value) => dao.set(column::processing, _value),
            None => dao.set_null(column::processing)
        }
        match self.processed {
            Some(ref _value) => dao.set(column::processed, _value),
            None => dao.set_null(column::processed)
        }
        match self.is_confirmed {
            Some(ref _value) => dao.set(column::is_confirmed, _value),
            None => dao.set_null(column::is_confirmed)
        }
        match self.is_tax_included {
            Some(ref _value) => dao.set(column::is_tax_included, _value),
            None => dao.set_null(column::is_tax_included)
        }
        match self.date_ordered {
            Some(ref _value) => dao.set(column::date_ordered, _value),
            None => dao.set_null(column::date_ordered)
        }
        match self.is_invoiced {
            Some(ref _value) => dao.set(column::is_invoiced, _value),
            None => dao.set_null(column::is_invoiced)
        }
        match self.date_invoiced {
            Some(ref _value) => dao.set(column::date_invoiced, _value),
            None => dao.set_null(column::date_invoiced)
        }
        match self.is_approved {
            Some(ref _value) => dao.set(column::is_approved, _value),
            None => dao.set_null(column::is_approved)
        }
        match self.date_approved {
            Some(ref _value) => dao.set(column::date_approved, _value),
            None => dao.set_null(column::date_approved)
        }
        match self.amount_tendered {
            Some(ref _value) => dao.set(column::amount_tendered, _value),
            None => dao.set_null(column::amount_tendered)
        }
        match self.amount_refunded {
            Some(ref _value) => dao.set(column::amount_refunded, _value),
            None => dao.set_null(column::amount_refunded)
        }
        match self.cart_id {
            Some(ref _value) => dao.set(column::cart_id, _value),
            None => dao.set_null(column::cart_id)
        }
        dao
    }
}

impl ToJson for Orders {

    fn to_json(&self) -> Json {
        self.to_dao().to_json()
    }
}

impl Default for Orders {

    fn default() -> Self {
        Orders{
            organization_id: Default::default(),
            client_id: Default::default(),
            created: UTC::now(),
            created_by: Default::default(),
            updated: UTC::now(),
            updated_by: Default::default(),
            priority: Default::default(),
            name: Default::default(),
            description: Default::default(),
            help: Default::default(),
            active: Default::default(),
            order_id: Default::default(),
            customer_name: Default::default(),
            total_items: Default::default(),
            grand_total_amount: Default::default(),
            charges_amount: Default::default(),
            processing: Default::default(),
            processed: Default::default(),
            is_confirmed: Default::default(),
            is_tax_included: Default::default(),
            date_ordered: Default::default(),
            is_invoiced: Default::default(),
            date_invoiced: Default::default(),
            is_approved: Default::default(),
            date_approved: Default::default(),
            amount_tendered: Default::default(),
            amount_refunded: Default::default(),
            cart_id: Default::default(),
            order_line: Default::default(),
        }
    }
}

impl IsTable for Orders {

    fn table() -> Table {
        Table {
            schema: Some(schema::bazaar.to_owned()),
            name: table::orders.to_owned(),
            parent_table: Some(table::record.to_owned()),
            sub_table: vec![],
            comment: None,
            columns: vec![
                Column {
                    name: column::organization_id.to_owned(),
                    data_type: Type::Uuid,
                    db_data_type: "uuid".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: true,
                    default: None,
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::client_id.to_owned(),
                    data_type: Type::Uuid,
                    db_data_type: "uuid".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: true,
                    default: None,
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::created.to_owned(),
                    data_type: Type::DateTime,
                    db_data_type: "timestamp with time zone".to_owned(),
                    is_primary: false, is_unique: false, not_null: true, is_inherited: true,
                    default: Some(Operand::Value(Value::String("'now()'".to_owned()))),
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::created_by.to_owned(),
                    data_type: Type::Uuid,
                    db_data_type: "uuid".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: true,
                    default: None,
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::updated.to_owned(),
                    data_type: Type::DateTime,
                    db_data_type: "timestamp with time zone".to_owned(),
                    is_primary: false, is_unique: false, not_null: true, is_inherited: true,
                    default: Some(Operand::Value(Value::String("'now()'".to_owned()))),
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::updated_by.to_owned(),
                    data_type: Type::Uuid,
                    db_data_type: "uuid".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: true,
                    default: None,
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::priority.to_owned(),
                    data_type: Type::F64,
                    db_data_type: "double precision".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: true,
                    default: None,
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::name.to_owned(),
                    data_type: Type::String,
                    db_data_type: "character varying".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: true,
                    default: None,
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::description.to_owned(),
                    data_type: Type::String,
                    db_data_type: "character varying".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: true,
                    default: None,
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::help.to_owned(),
                    data_type: Type::String,
                    db_data_type: "text".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: true,
                    default: None,
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::active.to_owned(),
                    data_type: Type::Bool,
                    db_data_type: "boolean".to_owned(),
                    is_primary: false, is_unique: false, not_null: true, is_inherited: true,
                    default: Some(Operand::Value(Value::String("'true'".to_owned()))),
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::order_id.to_owned(),
                    data_type: Type::Uuid,
                    db_data_type: "uuid".to_owned(),
                    is_primary: true, is_unique: false, not_null: true, is_inherited: false,
                    default: Some(Operand::Value(Value::String("'uuid_generate_v4()'".to_owned()))),
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::customer_name.to_owned(),
                    data_type: Type::String,
                    db_data_type: "character varying".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: None,
                    comment: Some("For recognization purposes, this is the name shown to the seller".to_owned()),
                    foreign: None,
                },
                Column {
                    name: column::total_items.to_owned(),
                    data_type: Type::I32,
                    db_data_type: "integer".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: None,
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::grand_total_amount.to_owned(),
                    data_type: Type::F64,
                    db_data_type: "double precision".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: None,
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::charges_amount.to_owned(),
                    data_type: Type::F64,
                    db_data_type: "double precision".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: Some(Operand::Value(Value::String("'0.00'".to_owned()))),
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::processing.to_owned(),
                    data_type: Type::Bool,
                    db_data_type: "boolean".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: Some(Operand::Value(Value::String("'false'".to_owned()))),
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::processed.to_owned(),
                    data_type: Type::Bool,
                    db_data_type: "boolean".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: Some(Operand::Value(Value::String("'false'".to_owned()))),
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::is_confirmed.to_owned(),
                    data_type: Type::Bool,
                    db_data_type: "boolean".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: Some(Operand::Value(Value::String("'false'".to_owned()))),
                    comment: Some("determined whether the order has been confirmed by the person who ordered it".to_owned()),
                    foreign: None,
                },
                Column {
                    name: column::is_tax_included.to_owned(),
                    data_type: Type::Bool,
                    db_data_type: "boolean".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: Some(Operand::Value(Value::String("'true'".to_owned()))),
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::date_ordered.to_owned(),
                    data_type: Type::DateTime,
                    db_data_type: "timestamp with time zone".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: Some(Operand::Value(Value::String("'now()'".to_owned()))),
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::is_invoiced.to_owned(),
                    data_type: Type::Bool,
                    db_data_type: "boolean".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: Some(Operand::Value(Value::String("'false'".to_owned()))),
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::date_invoiced.to_owned(),
                    data_type: Type::DateTime,
                    db_data_type: "timestamp with time zone".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: None,
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::is_approved.to_owned(),
                    data_type: Type::Bool,
                    db_data_type: "boolean".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: Some(Operand::Value(Value::String("'false'".to_owned()))),
                    comment: Some("if the order from the buyer is approved by the seller".to_owned()),
                    foreign: None,
                },
                Column {
                    name: column::date_approved.to_owned(),
                    data_type: Type::DateTime,
                    db_data_type: "timestamp with time zone".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: None,
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::amount_tendered.to_owned(),
                    data_type: Type::F64,
                    db_data_type: "double precision".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: None,
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::amount_refunded.to_owned(),
                    data_type: Type::F64,
                    db_data_type: "double precision".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: None,
                    comment: None,
                    foreign: None,
                },
                Column {
                    name: column::cart_id.to_owned(),
                    data_type: Type::Uuid,
                    db_data_type: "uuid".to_owned(),
                    is_primary: false, is_unique: false, not_null: false, is_inherited: false,
                    default: None,
                    comment: Some("The cart from which this order was created from".to_owned()),
                    foreign: None,
                },
            ],
            is_view: false,
        }
    }
}
// Generated columns for easier development of dynamic queries without sacrificing wrong spelling of column names

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static organization_id: &'static str = "orders.organization_id";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static client_id: &'static str = "orders.client_id";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static created: &'static str = "orders.created";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static created_by: &'static str = "orders.created_by";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static updated: &'static str = "orders.updated";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static updated_by: &'static str = "orders.updated_by";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static priority: &'static str = "orders.priority";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static name: &'static str = "orders.name";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static description: &'static str = "orders.description";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static help: &'static str = "orders.help";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static active: &'static str = "orders.active";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static order_id: &'static str = "orders.order_id";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static customer_name: &'static str = "orders.customer_name";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static total_items: &'static str = "orders.total_items";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static grand_total_amount: &'static str = "orders.grand_total_amount";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static charges_amount: &'static str = "orders.charges_amount";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static processing: &'static str = "orders.processing";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static processed: &'static str = "orders.processed";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static is_confirmed: &'static str = "orders.is_confirmed";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static is_tax_included: &'static str = "orders.is_tax_included";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static date_ordered: &'static str = "orders.date_ordered";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static is_invoiced: &'static str = "orders.is_invoiced";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static date_invoiced: &'static str = "orders.date_invoiced";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static is_approved: &'static str = "orders.is_approved";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static date_approved: &'static str = "orders.date_approved";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static amount_tendered: &'static str = "orders.amount_tendered";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static amount_refunded: &'static str = "orders.amount_refunded";

#[allow(non_upper_case_globals)]
#[allow(dead_code)]
pub static cart_id: &'static str = "orders.cart_id";