@ckstack/ck-lib-models
Version:
ckstack default database table sequelize models
43 lines (42 loc) • 981 B
TypeScript
import { Model } from 'sequelize-typescript';
import { CkValue } from '@dkpkg/dk-lib';
/**
* tbl_files 테이블
* - pk : id
* - index:
* + rid : unique
* + user_id
*/
export declare class File extends Model {
id: number;
rid: string;
name: string;
orig_name: string;
content_type: string;
file_path: string;
file_url_path: string;
s3_bucket: string;
s3_obj_key: string;
s3_region: string;
file_size: number;
width: number;
height: number;
thumbnail_path: string;
thumbnail_url_path: string;
thumbnail_s3_bucket: string;
thumbnail_s3_region: string;
thumbnail_s3_obj_key: string;
thumbnail_size: number;
thumbnail_width: number;
thumbnail_height: number;
description: string;
ipaddress: string;
used: {
[key: string]: any;
};
user_id: string;
deleted: CkValue.YES_OR_NO;
c_date: Date;
u_date: Date;
static autoFitString(data: File): void;
}