Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. CREATE TABLE `phieu_chi` (
  2. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT ,
  3. `id_khach_hang` int(11) NULL DEFAULT NULL COMMENT 'Lấy trong bảng danh mục khách hàng' ,
  4. `nguoi_nhan_tien` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT 'Nhập ô text' ,
  5. `ly_do` varchar(1000) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT 'thông tin diễn giải phiếu chi' ,
  6. `id_tai_khoan_co` int(11) NOT NULL COMMENT 'Lấy trong bảng danh mục tài khoản' ,
  7. `so_phieu_chi` int(11) NULL DEFAULT NULL COMMENT 'Lấy trong danh mục quyển chứng từ' ,
  8. `ngay_lap` datetime NULL DEFAULT NULL ,
  9. `ngay_hoach_toan` datetime NULL DEFAULT NULL ,
  10. `id_tien_te` int(11) NULL DEFAULT NULL COMMENT 'Tỉ giá : lấy trong bảng danh mục tiền tệ' ,
  11. `trang_thai` tinyint(4) NULL DEFAULT NULL COMMENT '0: Lập chứng từ,1: chuểnKTTH ,2 : Chuyển sổ cái' ,
  12. `tien` float(11,0) NULL DEFAULT NULL COMMENT 'lấy tiền trong chi tiết' ,
  13. `thue_vat` int(10) NULL DEFAULT NULL ,
  14. `tong_tien` float(11,0) NULL DEFAULT NULL ,
  15. `ngay_tao` datetime NULL DEFAULT NULL ,
  16. `ngay_sua` datetime NULL DEFAULT NULL ,
  17. `nguoi_tao` int(11) NULL DEFAULT NULL ,
  18. `nguoi_sua` int(11) NULL DEFAULT NULL ,
  19. PRIMARY KEY (`id`)
  20. )
  21. ENGINE=MyISAM
  22. DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci
  23. AUTO_INCREMENT=1
  24. CHECKSUM=0
  25. ROW_FORMAT=DYNAMIC
  26. DELAY_KEY_WRITE=0
  27. ;
  28. //////////////////////////////////////////////////////
  29. CREATE TABLE `chi_tiet_phieu_chi` (
  30. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT ,
  31. `id_phieu_chi` int(11) NOT NULL ,
  32. `id_tai_khoan_no` int(11) NOT NULL COMMENT 'lấy trong danh mục tài khoản' ,
  33. `tien` float(11,2) NULL DEFAULT NULL COMMENT 'Số tiền nợ' ,
  34. `dien_giai` varchar(1000) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL ,
  35. `id_bo_phan` int(11) NULL DEFAULT NULL COMMENT 'lấy trong bảng danh mục nhân viên' ,
  36. `id_vu_viec` int(11) NULL DEFAULT NULL COMMENT 'lấy trong bảng danh mục vụ việc' ,
  37. `ngay_tao` datetime NULL DEFAULT NULL ,
  38. `ngay_sua` datetime NULL DEFAULT NULL ,
  39. `nguoi_tao` int(11) NULL DEFAULT NULL ,
  40. `nguoi_sua` int(11) NULL DEFAULT NULL ,
  41. PRIMARY KEY (`id`)
  42. )
  43. ENGINE=MyISAM
  44. DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci
  45. AUTO_INCREMENT=1
  46. CHECKSUM=0
  47. ROW_FORMAT=DYNAMIC
  48. DELAY_KEY_WRITE=0
  49. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement