Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
basketreservationtable.php
1<?php
2
4
9
27{
28 public static function getTableName()
29 {
30 return 'b_sale_basket_reservation';
31 }
32
33 public static function getMap()
34 {
35 return [
36 'ID' => [
37 'data_type' => 'integer',
38 'primary' => true,
39 'autocomplete' => true
40 ],
41 'QUANTITY' => [
42 'data_type' => 'float',
43 'required' => true
44 ],
45 'DATE_RESERVE' => [
46 'data_type' => 'datetime',
47 'required' => true
48 ],
49 'DATE_RESERVE_END' => [
50 'data_type' => 'datetime',
51 'required' => true,
52 ],
53 'RESERVED_BY' => [
54 'data_type' => 'integer',
55 ],
56 'BASKET_ID' => [
57 'data_type' => 'integer',
58 'required' => true
59 ],
60 'STORE_ID' => [
61 'data_type' => 'integer',
62 ],
63 // refs
64 new Reference('BASKET', BasketTable::class, Join::on('this.BASKET_ID', 'ref.ID')),
65 ];
66 }
67}