· 8 years ago · Mar 09, 2018, 07:36 PM
1CREATE TABLE IF NOT EXISTS `storage_cashdesk_items` (
2 `id` int(11) NOT NULL AUTO_INCREMENT,
3 `guest_id` int(11) DEFAULT NULL,
4 `cashdesk_id` int(11) NOT NULL,
5 `item_type` set('item','ticket') NOT NULL,
6 `item_id` int(11) NOT NULL,
7 `status` tinyint(4) NOT NULL COMMENT 'Ki van-e fizetve, vagy nincs.',
8 `amount` int(11) NOT NULL COMMENT 'Mennyiség',
9 `discount` int(11) NOT NULL COMMENT 'Kedvezmény százalékban',
10 `price` int(11) NOT NULL COMMENT 'Darabonkénti eredeti ár',
11 `currency_id` int(11) NOT NULL,
12 `payment_type_id` int(11) NOT NULL,
13 `created_by` int(11) NOT NULL,
14 `created_at` int(11) NOT NULL,
15 `deleted_by` int(11) NOT NULL,
16 `deleted_at` int(11) NOT NULL,
17 PRIMARY KEY (`id`)
18) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='Büfé eladások.';