iot_cloud/apps/iot/include/iot_tables.hrl
2025-05-08 12:49:54 +08:00

22 lines
650 B
Erlang

%%%-------------------------------------------------------------------
%%% @author anlicheng
%%% @copyright (C) 2025, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 08. 5月 2025 12:08
%%%-------------------------------------------------------------------
-author("anlicheng").
%% 用来保存微服务的配置
-record(service_config, {
service_id :: binary(),
config_json = <<>> :: binary(),
%% 保持上一个版本的内容,错误时回滚
last_config_json = <<>> :: binary(),
%% 最后一次修改的用户id
last_edit_user :: integer(),
%% 状态: 0: 停止, 1: 运行中
update_ts = 0,
create_ts = 0
}).