@ckstack/ck-lib-models
Version:
ckstack default database table sequelize models
29 lines (28 loc) • 830 B
TypeScript
import { Model } from 'sequelize-typescript';
import { CkValue } from '@dkpkg/dk-lib';
import { MqttAcl } from './MqttAcl';
/**
* users_t 테이블. mosquitto auth 에서 connect 를 위한 username 테이블.
* 참고: https://home.hottis.de/gitlab/dockerized/mosquitto-with-auth
* - pk : id
* - index:
* + username : unique
*/
export declare class MqttUser extends Model {
id: number;
rid: string;
username: string;
pw: string;
pw_crypt: string;
pw_key: string;
/** super 값이 1 이면 acl 체크를 하지 않고, 0 이면 acl 체크를 한다. */
super: CkValue.MOSQUITTO_USER_TYPE;
host: string;
port: number;
protocol: CkValue.MQTT_PROTOCOL;
is_public: CkValue.YES_OR_NO;
description: string;
c_date: Date;
u_date: Date;
mqttAcls: Array<MqttAcl>;
}