AiJiNanProject/db/20191111_tong.sql
小黄狗横扫士力架 bfc6a73c2f first commit
2022-12-28 09:45:16 +08:00

15 lines
779 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

CREATE TABLE `sys_tenant` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`parent_id` bigint(20) DEFAULT NULL COMMENT '父id',
`tenant_name` varchar(50) DEFAULT NULL COMMENT '机构名',
`category` tinyint(2) DEFAULT '1' COMMENT '1机构2个人',
`license` varchar(100) DEFAULT NULL COMMENT '营业执照',
`license_url` varchar(1000) DEFAULT NULL COMMENT '营业执照url',
`status` tinyint(4) DEFAULT NULL COMMENT '状态 0禁用 1正常',
`sort` int(11) DEFAULT '0' COMMENT '排序',
`remark` varchar(10000) DEFAULT NULL COMMENT '备注',
`create_time` datetime DEFAULT NULL,
`create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者ID',
`delete_flag` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;