You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

CREATE TABLE `author_income_detail` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '',
`user_id` bigint(20) NOT NULL COMMENT 'ID',
`author_id` bigint(20) NOT NULL COMMENT 'ID',
`book_id` bigint(20) NOT NULL DEFAULT '0' COMMENT 'ID,0',
`income_date` date NOT NULL COMMENT '',
`income_account` int(11) NOT NULL DEFAULT '0' COMMENT '',
`income_count` int(11) NOT NULL DEFAULT '0' COMMENT '',
`income_number` int(11) NOT NULL DEFAULT '0' COMMENT '',
`create_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='稿';
CREATE TABLE `author_income` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '',
`user_id` bigint(20) NOT NULL COMMENT 'ID',
`author_id` bigint(20) NOT NULL COMMENT 'ID',
`book_id` bigint(20) NOT NULL COMMENT 'ID',
`income_month` date NOT NULL COMMENT '',
`pre_tax_income` bigint(20) NOT NULL DEFAULT '0' COMMENT '',
`after_tax_income` bigint(20) NOT NULL DEFAULT '0' COMMENT '',
`pay_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '01',
`confirm_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '稿01',
`detail` varchar(255) DEFAULT NULL COMMENT '',
`create_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='稿';