[feat] 세션 step desync 동기화
This commit is contained in:
1 parent
5d9eedf2f6
commit
fd2e5c1cc2
4 files changed
+69
-7
No files matched your search
@@ -8,8 +8,8 @@
|
||||
\connect negosium_db
|
||||
|
||||
-- 회사 1개 (고정 UUID). status 1=active. code/industry 는 코드값이라 비워둠(nullable).
|
||||
INSERT INTO company.companies (company_id, name, business_number, representative_name, email, contact_number, website_url, status)
|
||||
SELECT '00000000-0000-0000-0000-000000000001', '아이마켓코리아', '220-88-21724', '홍길동',
|
||||
INSERT INTO company.companies (name, business_number, representative_name, email, contact_number, website_url, status)
|
||||
SELECT '아이마켓코리아', '220-88-21724', '홍길동',
|
||||
'admin@imarketkorea.com', '02-3708-5000', 'https://www.imarketkorea.com', 1
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1 FROM company.companies WHERE company_id = '00000000-0000-0000-0000-000000000001'
|
||||
@@ -17,9 +17,7 @@ WHERE NOT EXISTS (
|
||||
|
||||
-- admin 유저. password 는 'admin123' 의 bcrypt 해시(백엔드 GetHashedPW 와 동일 알고리즘, checkpw 로 검증됨).
|
||||
-- role 2=manager (UserRole.MANAGER; ADMIN 코드는 enum 에 없어 최상위인 MANAGER 사용). status 1=active.
|
||||
INSERT INTO company.users (user_id, company_id, id, password, name, email, contact_number, last_accessed_at, status, role)
|
||||
SELECT '00000000-0000-0000-0000-000000000002',
|
||||
'00000000-0000-0000-0000-000000000001',
|
||||
INSERT INTO company.users (id, password, name, email, contact_number, last_accessed_at, status, role)
|
||||
'admin',
|
||||
'$2b$12$KY4T0kXQ2npvvt71iWZG0.JZHlMNt9angIkE/7.lBC4vta4dHgrj2',
|
||||
'관리자', 'admin@imarketkorea.com', '02-3708-5000', now(), 1, 2
|
||||
|
||||
Reference in new issue
Block a user