cashier_server/sqls/250403/tb_sync_notice.sql

15 lines
1.2 KiB
SQL
Raw 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,
`name` varchar(255) DEFAULT NULL COMMENT '商品名称或耗材名称',
`source_id` bigint DEFAULT NULL COMMENT '来源id',
`sys_user_id` bigint DEFAULT NULL COMMENT '操作用户id',
`type` tinyint DEFAULT NULL COMMENT '通知类型 0 商品变动 1 耗材变动',
`is_read` tinyint DEFAULT '0' COMMENT '是否已读1已读',
`shop_id` bigint DEFAULT NULL COMMENT '店铺id',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`read_time` datetime DEFAULT NULL COMMENT '已读时间',
`operation_type` tinyint DEFAULT NULL COMMENT '操作类型 0 新增 1 修改',
`content` varchar(255) DEFAULT NULL COMMENT '消息内容',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;