Create alias table and add it to the spec
This commit is contained in:
@ -50,3 +50,11 @@ sudo -u postgres psql -c "CREATE TABLE cryptoWallets(
|
||||
walletAddress text
|
||||
);
|
||||
" cavecomm
|
||||
|
||||
sudo -u postgres psql -c "CREATE TABLE aliasRoutes(
|
||||
aliasName text PRIMARY KEY,
|
||||
freelancerID int,
|
||||
route text,
|
||||
routeParameters text
|
||||
);
|
||||
" cavecomm
|
||||
|
16
spec/spec.md
16
spec/spec.md
@ -57,14 +57,16 @@ $onDeliverPaid - A boolean representation of if the on-Deliver Payment has been
|
||||
|
||||
## Customer
|
||||
|
||||
### /@{String}
|
||||
+++ /@{aliasName}
|
||||
|
||||
personal freelancer links that link to the freelancer profile and/or template
|
||||
DB structure
|
||||
{
|
||||
$alias
|
||||
$destination
|
||||
}
|
||||
|
||||
$aliasName text PRIMARY KEY - the name of the alias which is used for the route
|
||||
$freelancerID int - the id of the freelancer who created this alias
|
||||
$route text - route in the format "/customer/$freelancer/template/$templateName" set in the interface
|
||||
$routeParameter text - POST parameter to address the route usually the id of either freelancer or template
|
||||
$routeValue text - POST Value to address the route
|
||||
|
||||
|
||||
+++ "/"
|
||||
|
||||
@ -78,7 +80,7 @@ This page should consist of all the information about a freelancer that the free
|
||||
|
||||
See the freelancer section under concepts for more information of what this should be like.
|
||||
|
||||
### /customer/$freelancer/template/$templateName
|
||||
+++ /customer/$freelancer/template/$templateName
|
||||
|
||||
Accessing this page will provide the customer with a rendered HTML document of a freelancer's job template. This rendering will take data that the freelancer provides for the job, ideally stored in the database, and fills it in for delivery to the customer. The job template should use a html template that the system administrator provides for filling in.
|
||||
|
||||
|
Reference in New Issue
Block a user