Change Template Table design to be more explicit and add said changes to the spec

This commit is contained in:
Tina_Azure
2023-04-04 01:47:01 +02:00
parent b78b5bd05a
commit f19d999c64
2 changed files with 20 additions and 2 deletions

View File

@@ -34,7 +34,12 @@ sudo -u postgres psql -c "CREATE TABLE templates(
id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY, id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
freelancerID int, freelancerID int,
name text, name text,
content text content text,
contactData text,
contactInformation text,
currencyPreference text,
priceUpFront decimal,
priceOnDeliver decimal,
); );
" cavecomm " cavecomm

View File

@@ -17,7 +17,17 @@ Templates - A list of templates that a freelancer uses.
Customers are any users of the site who do not hold an account. Ideally, they will be the ones purchasing labor from freelancers. Customers are any users of the site who do not hold an account. Ideally, they will be the ones purchasing labor from freelancers.
## Templates ## Templates
$id int - template id that automatically increments
$freelancerID int - id referencing the freelancer who owns the template
$name text - name of the template
$content text - the main content describing the template
$contactData text - contact data like discord username or email address
$contactInformation text - supplemental contact information like email subject, or time availibility
$currencyPreference text - Preference for currency provided. USD (or similar) for Stripe, Various shortening of crypto coins (such as BTC, ETH, XMR) for BTCPayServer.
$priceUpFront decimal - The amount of money that the customer is to be charged before a freelancer starts working.
$priceOnDeliver decimal - The amount of money that the customer is to be charged after the freelancer finishes working (required for payment-to-receive a product).
Templates are prepared and defined descriptions of jobs, with payments, that Freelancers furnish and offer to the public. They are easy, cookie cutter listings that the public may purchase for a predefined amount of money. These are effectively "canned" jobs with cookie cutter definitions and little need for communication between client and freelancer as to offer a streamlined commissioning experience. Templates are prepared and defined descriptions of jobs, with payments, that Freelancers furnish and offer to the public. They are easy, cookie cutter listings that the public may purchase for a predefined amount of money. These are effectively "canned" jobs with cookie cutter definitions and little need for communication between client and freelancer as to offer a streamlined commissioning experience.
@@ -42,6 +52,9 @@ $onDeliverPaid - A boolean representation of if the on-Deliver Payment has been
# Interface # Interface
+++ Datatransfer inbetween pages is performed with POST
## Customer ## Customer
### /@{String} ### /@{String}