Fixes the Site wize skills page,
makes use of Mono.Web.Xdt at deploy time * PayPalController.cs: implements a Paypal controller * Abort.aspx: Paypal paiement aborting page * Commit.aspx: Paypal paiement commit page * IPN.aspx: Paypal paiement notification page * Index.aspx: Paypal paiement form page * WebTasks.dll: thanks to he Marcelo Zabani's coding blog: <https://mzabani.wordpress.com/2013/09/24/mono-asp-net-project-deployment-with-web-config-xdt-transformations/> * .gitignore: ignore my new config transformation sources * pkg.mdproj: * Presta.csproj: * TestAPI.csproj: * fortune.csproj: * SalesCatalog.csproj: * ITContentProvider.csproj: * NpgsqlMRPProviders.csproj: * NpgsqlBlogProvider.csproj: * NpgsqlContentProvider.csproj: adds a build target named "Lua" * Makefile: instead of `deploy`, start Xsp, in the `dist` folder * Yavsc.sln: * YavscModel.csproj: * WebControls.csproj: * YavscClient.csproj: Lua config * yavsc.rate.js: refactoring, still needs a cleanning * RateSkillControl.ascx: give it the `rate-site-skill` `data-type` html attribute * RateUserSkillControl.ascx: cleans an obsolete code chunk * Web.csproj: Fixes the missing RateSkillControl at deploy time, adds my deployment config
This commit is contained in:
parent
47285f8b83
commit
029a80e2c4
44 changed files with 574 additions and 281 deletions
68
web/App_Code/Sql/Skills.sql
Normal file
68
web/App_Code/Sql/Skills.sql
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
|
||||
-- Table: skill
|
||||
|
||||
-- DROP TABLE skill;
|
||||
|
||||
CREATE TABLE skill
|
||||
(
|
||||
_id bigserial NOT NULL,
|
||||
name character varying(2024) NOT NULL,
|
||||
rate integer NOT NULL DEFAULT 50,
|
||||
CONSTRAINT skill_pkey PRIMARY KEY (_id),
|
||||
CONSTRAINT skill_name_key UNIQUE (name)
|
||||
)
|
||||
WITH (
|
||||
OIDS=FALSE
|
||||
);
|
||||
|
||||
|
||||
-- Table: userskills
|
||||
|
||||
-- DROP TABLE userskills;
|
||||
|
||||
CREATE TABLE userskills
|
||||
(
|
||||
applicationname character varying(512) NOT NULL,
|
||||
username character varying(512) NOT NULL,
|
||||
comment character varying,
|
||||
skillid bigint NOT NULL, -- Skill identifier
|
||||
rate integer NOT NULL,
|
||||
_id bigserial NOT NULL, -- The id ...
|
||||
CONSTRAINT userskills_pkey PRIMARY KEY (applicationname, username, skillid),
|
||||
CONSTRAINT userskills_applicationname_fkey FOREIGN KEY (applicationname, username)
|
||||
REFERENCES users (applicationname, username) MATCH SIMPLE
|
||||
ON UPDATE CASCADE ON DELETE CASCADE,
|
||||
CONSTRAINT userskills_skillid_fkey FOREIGN KEY (skillid)
|
||||
REFERENCES skill (_id) MATCH SIMPLE
|
||||
ON UPDATE CASCADE ON DELETE CASCADE,
|
||||
CONSTRAINT userskills__id_key UNIQUE (_id)
|
||||
)
|
||||
WITH (
|
||||
OIDS=FALSE
|
||||
);
|
||||
COMMENT ON COLUMN userskills.skillid IS 'Skill identifier';
|
||||
COMMENT ON COLUMN userskills._id IS 'The id ...';
|
||||
|
||||
-- Table: satisfaction
|
||||
|
||||
-- DROP TABLE satisfaction;
|
||||
|
||||
CREATE TABLE satisfaction
|
||||
(
|
||||
_id bigserial NOT NULL,
|
||||
userskillid bigint, -- the user's skill reference
|
||||
rate integer, -- The satisfaction rating associated by a client to an user's skill
|
||||
comnt character varying(8192), -- The satisfaction textual comment associated by a client to an user's skill, it could be formatted ala Markdown
|
||||
CONSTRAINT satisfaction_pkey PRIMARY KEY (_id),
|
||||
CONSTRAINT satisfaction_userskillid_fkey FOREIGN KEY (userskillid)
|
||||
REFERENCES userskills (_id) MATCH SIMPLE
|
||||
ON UPDATE CASCADE ON DELETE CASCADE
|
||||
)
|
||||
WITH (
|
||||
OIDS=FALSE
|
||||
);
|
||||
COMMENT ON COLUMN satisfaction.userskillid IS 'the user''s skill reference';
|
||||
COMMENT ON COLUMN satisfaction.rate IS 'The satisfaction rating associated by a client to an user''s skill';
|
||||
COMMENT ON COLUMN satisfaction.comnt IS 'The satisfaction textual comment associated by a client to an user''s skill, it could be formatted ala Markdown';
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue