add email to citizen table
This commit is contained in:
@@ -4,7 +4,7 @@ declare
|
||||
created_user json := '{"username": "george", "plain_password": "azerty", "roles": ["ROLE_USER"]}';
|
||||
_user_id uuid;
|
||||
_citizen_id uuid;
|
||||
created_citizen json := '{"name": {"first_name":"George", "last_name":"MICHEL"}, "birthday": "2001-01-01"}';
|
||||
created_citizen json := '{"name": {"first_name":"George", "last_name":"MICHEL"}, "birthday": "2001-01-01", "email":"george.michel@gmail.com"}';
|
||||
created_article json := '{"version_id":"933b6a1b-50c9-42b6-989f-c02a57814ef9", "title": "Love the world", "anonymous": false, "content": "bla bal bla", "tags": ["love", "test"], "draft":false}';
|
||||
created_article_v2 json;
|
||||
first_article_id uuid;
|
||||
|
||||
@@ -4,8 +4,8 @@ declare
|
||||
wrong_citizen json;
|
||||
created_user json := '{"username": "george", "plain_password": "azerty", "roles": ["ROLE_USER"]}';
|
||||
_user_id uuid;
|
||||
created_citizen json := '{"name": {"first_name":"George", "last_name":"MICHEL"}, "birthday": "2001-01-01"}';
|
||||
created_citizen_with_user json := '{"name": {"first_name":"George", "last_name":"MICHEL"}, "birthday": "2001-01-01", "user":{"username": "george junior", "plain_password": "azerty", "roles": ["ROLE_USER"]}}';
|
||||
created_citizen json := '{"name": {"first_name":"George", "last_name":"MICHEL"}, "birthday": "2001-01-01", "email":"george.michel@gmail.com"}';
|
||||
created_citizen_with_user json := '{"name": {"first_name":"George", "last_name":"MICHEL"}, "birthday": "2001-01-01", "email":"george.michel@gmail.com", "user":{"username": "george junior", "plain_password": "azerty", "roles": ["ROLE_USER"]}}';
|
||||
selected_citizen json;
|
||||
begin
|
||||
-- insert user for context
|
||||
|
||||
@@ -10,7 +10,8 @@ declare
|
||||
"first_name": "George",
|
||||
"last_name": "MICHEL"
|
||||
},
|
||||
"birthday": "2001-01-01"
|
||||
"birthday": "2001-01-01",
|
||||
"email":"george.michel@gmail.com"
|
||||
}
|
||||
$json$;
|
||||
created_article json := $json$
|
||||
|
||||
@@ -10,7 +10,8 @@ declare
|
||||
"first_name": "George",
|
||||
"last_name": "MICHEL"
|
||||
},
|
||||
"birthday": "2001-01-01"
|
||||
"birthday": "2001-01-01",
|
||||
"email":"george.michel@gmail.com"
|
||||
}
|
||||
$json$;
|
||||
created_article json := $json$
|
||||
|
||||
@@ -11,7 +11,8 @@ declare
|
||||
"first_name": "George",
|
||||
"last_name": "MICHEL"
|
||||
},
|
||||
"birthday": "2001-01-01"
|
||||
"birthday": "2001-01-01",
|
||||
"email":"george.michel@gmail.com"
|
||||
}
|
||||
$json$;
|
||||
created_citizen2 json := $json$
|
||||
@@ -20,7 +21,8 @@ declare
|
||||
"first_name": "John",
|
||||
"last_name": "Doe"
|
||||
},
|
||||
"birthday": "2002-01-01"
|
||||
"birthday": "2002-01-01",
|
||||
"email":"george.michel@gmail.com"
|
||||
}
|
||||
$json$;
|
||||
begin
|
||||
|
||||
@@ -11,7 +11,8 @@ declare
|
||||
"first_name": "George",
|
||||
"last_name": "MICHEL"
|
||||
},
|
||||
"birthday": "2001-01-01"
|
||||
"birthday": "2001-01-01",
|
||||
"email":"george.michel@gmail.com"
|
||||
}
|
||||
$json$;
|
||||
created_citizen2 json := $json$
|
||||
@@ -20,7 +21,8 @@ declare
|
||||
"first_name": "George2",
|
||||
"last_name": "MICHEL2"
|
||||
},
|
||||
"birthday": "2001-01-02"
|
||||
"birthday": "2001-01-02",
|
||||
"email":"george.michel@gmail.com"
|
||||
}
|
||||
$json$;
|
||||
created_article json := $json$
|
||||
|
||||
Reference in New Issue
Block a user