servermgrv2 init...

This commit is contained in:
최준흠git config git config --helpgit config --global user.name 최준흠 2023-07-21 23:32:26 +09:00
commit 9c64f0dcb8
3 changed files with 17 additions and 0 deletions

View File

@ -158,7 +158,11 @@ define('AUTH_ADAPTERS', [
]); ]);
//등급 관련 //등급 관련
define('ROLES', [ define('ROLES', [
<<<<<<< HEAD
'guest' => '비회원', 'user' => '일반회원', 'vip' => 'VIP회원', 'guest' => '비회원', 'user' => '일반회원', 'vip' => 'VIP회원',
=======
'user' => '일반회원', 'vip' => 'VIP회원',
>>>>>>> e0f7632966d765518a4f99c56c4a05c032ec5946
'bronze' => '일반판매자', 'silver' => '고급판매자', 'gold' => '파워리셀러', 'bronze' => '일반판매자', 'silver' => '고급판매자', 'gold' => '파워리셀러',
'manager' => '관리자', 'cloudflare' => "Cloudflare관리자", 'director' => '감독자', 'master' => "마스터", 'manager' => '관리자', 'cloudflare' => "Cloudflare관리자", 'director' => '감독자', 'master' => "마스터",
]); ]);

View File

@ -29,7 +29,11 @@ CREATE TABLE tw_board (
grpno int(5) UNSIGNED NOT NULL DEFAULT 1 COMMENT 'Group번호: 상위가없을시 기본 uid와 같음', grpno int(5) UNSIGNED NOT NULL DEFAULT 1 COMMENT 'Group번호: 상위가없을시 기본 uid와 같음',
grporder int(5) UNSIGNED NOT NULL DEFAULT 1 COMMENT 'Group순서: 상위가없을시 0부터시작', grporder int(5) UNSIGNED NOT NULL DEFAULT 1 COMMENT 'Group순서: 상위가없을시 0부터시작',
grpdepth int(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT 'Group깊이: 상위가없을시 1부터시작 , 상위 grpdpt+1씩 추가필요', grpdepth int(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT 'Group깊이: 상위가없을시 1부터시작 , 상위 grpdpt+1씩 추가필요',
<<<<<<< HEAD
board_category_uid varchar(36) NOT NULL COMMENT '게시판구분', board_category_uid varchar(36) NOT NULL COMMENT '게시판구분',
=======
board_category varchar(10) NOT NULL COMMENT '게시판구분',
>>>>>>> e0f7632966d765518a4f99c56c4a05c032ec5946
user_uid varchar(36) NULL COMMENT '작성자 정보', user_uid varchar(36) NULL COMMENT '작성자 정보',
title varchar(255) NOT NULL COMMENT '제목', title varchar(255) NOT NULL COMMENT '제목',
content text NOT NULL COMMENT '내용', content text NOT NULL COMMENT '내용',

View File

@ -11,12 +11,21 @@ class BoardModel extends BaseModel
// protected $useAutoIncrement = true; // protected $useAutoIncrement = true;
protected $allowedFields = ['grpno', 'grporder', 'grpdepth', 'board_category', 'user_uid', 'title', 'content', 'passwd', 'view_cnt', 'status', 'updated_at']; protected $allowedFields = ['grpno', 'grporder', 'grpdepth', 'board_category', 'user_uid', 'title', 'content', 'passwd', 'view_cnt', 'status', 'updated_at'];
protected $validationRules = [ protected $validationRules = [
<<<<<<< HEAD
'grpno' => 'if_exist|numeric', 'grpno' => 'if_exist|numeric',
'grporder' => 'if_exist|numeric', 'grporder' => 'if_exist|numeric',
'grpdepth' => 'if_exist|numeric', 'grpdepth' => 'if_exist|numeric',
'board_category' => 'required|string', 'board_category' => 'required|string',
'user_uid' => 'if_exist|regex_match[/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/]', 'user_uid' => 'if_exist|regex_match[/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/]',
'title' => 'required|string', 'title' => 'required|string',
=======
'grpno' => 'if_exist|numeric',
'grporder' => 'if_exist|numeric',
'grpdepth' => 'if_exist|numeric',
'board_category' => 'required|string',
'user_uid' => 'if_exist|regex_match[/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/]',
'title' => 'required|string',
>>>>>>> e0f7632966d765518a4f99c56c4a05c032ec5946
'content' => 'required|string', 'content' => 'required|string',
'passwd' => 'if_exist|trim|string', 'passwd' => 'if_exist|trim|string',
'view_cnt' => 'if_exist|numeric', 'view_cnt' => 'if_exist|numeric',