Last active
March 30, 2020 13:15
-
-
Save arialwhite/8f33690a0cfbcdcf4e1144ff914330b4 to your computer and use it in GitHub Desktop.
medbed SQL insert: 1 site + 2 ufs + referent/client users
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- site | |
INSERT INTO site | |
( | |
id, | |
placeId, | |
name, | |
address, | |
phoneNumber, | |
department, | |
zipCode, | |
longitude, | |
latitude, | |
createdAt, | |
updatedAt, | |
ghtId | |
) | |
VALUES | |
( | |
1099, | |
null, | |
'SITE 1099', | |
'5 rue du chene', | |
'0688748756', | |
'loire atlantique', | |
'44300', | |
0, | |
0, | |
TIMESTAMP '2020-03-25 01:54:57.000', | |
TIMESTAMP '2020-03-25 01:54:57.000', | |
8 | |
); | |
-- uf | |
INSERT INTO uf (name,siteId,bedOtherTotal,bedOtherUsed,bedCovidTotal,bedCovidUsed,lastUpdated) | |
VALUES | |
('REA MED - UF0001',1099,10,5,5,2,TIMESTAMP '2020-03-30 12:56:10.766'), | |
('REA MED - UF0002',1099,10,5,5,2,TIMESTAMP '2020-03-30 12:56:10.766'); | |
-- user | |
-- passwords: 'Referent' and 'Client' | |
INSERT INTO `user` (lastname,firstname,phoneNumber,mail,password,role,assignmentSiteId) | |
VALUES | |
('ref1','ref1_name','','[email protected]','$2b$12$lgidrIAsWZ/LeRyPekQRAOjfKp9Xo.FA5G9NxKMY9Wi3ZrZuQO2YC','REFERENT', 1099), | |
('samu1','samu1_name','','[email protected]','$2b$12$4h4T.74tkfrn6mRu7BSPq.U0uGPYoXYoaYWCaUKFYZVYfUCaFrkjy','CLIENT', 1099); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment