cashier_server/sqls/250403/tb_sync_notice.sql

13 lines
1.0 KiB
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 `tb_sync_notice` (
`id` bigint NOT NULL AUTO_INCREMENT,
`shop_id` bigint DEFAULT NULL COMMENT '店铺id',
`sys_user_id` bigint DEFAULT NULL COMMENT '操作用户id',
`type` tinyint DEFAULT NULL COMMENT '通知类型 0 商品新增 1 商品编辑 2耗材新增 3耗材编辑\r\n',
`is_read` tinyint DEFAULT '0' COMMENT '是否已读1已读',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`read_time` datetime DEFAULT NULL COMMENT '已读时间',
`content` varchar(255) DEFAULT NULL COMMENT '消息内容',
`extra_json` varchar(255) DEFAULT NULL COMMENT '拓展信息',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;