PHP Classes

File: job_posting_schema.sql

Recommend this page to a friend!
  Classes of uche   PHP Job Portal Project API   job_posting_schema.sql   Download  
File: job_posting_schema.sql
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Job Portal Project API
API to post working jobs and let freelancers apply
Author: By
Last change:
Date: 2 years ago
Size: 9,859 bytes
 

Contents

Class file image Download
-- Valentina Studio -- -- MySQL dump -- -- --------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- --------------------------------------------------------- -- CREATE TABLE "freelancers" ------------------------------ -- CREATE TABLE "freelancers" ---------------------------------- CREATE TABLE `freelancers` ( `id` Int( 255 ) AUTO_INCREMENT NOT NULL, `name` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `email` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `password` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `created_at` Timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP DEFAULT CURRENT_TIMESTAMP, `rank_id` Int( 255 ) NOT NULL, PRIMARY KEY ( `id` ) ) CHARACTER SET = utf8 COLLATE = utf8_general_ci ENGINE = InnoDB AUTO_INCREMENT = 4; -- ------------------------------------------------------------- -- --------------------------------------------------------- -- Dump data of "freelancers" ------------------------------ -- --------------------------------------------------------- /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -- --------------------------------------------------------- -- CREATE TABLE "tokens" ----------------------------------- -- CREATE TABLE "tokens" --------------------------------------- CREATE TABLE `tokens` ( `id` Int( 255 ) AUTO_INCREMENT NOT NULL, `token` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `created_at` Timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY ( `id` ) ) CHARACTER SET = utf8 COLLATE = utf8_general_ci ENGINE = InnoDB AUTO_INCREMENT = 19; -- ------------------------------------------------------------- -- --------------------------------------------------------- -- Dump data of "tokens" ----------------------------------- -- --------------------------------------------------------- /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -- --------------------------------------------------------- -- CREATE TABLE "monthly_limits" --------------------------- -- CREATE TABLE "monthly_limits" ------------------------------- CREATE TABLE `monthly_limits` ( `id` Int( 255 ) AUTO_INCREMENT NOT NULL, `freelancer_id` Int( 255 ) NOT NULL, `points` Int( 255 ) NOT NULL, `created_at` Timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY ( `id` ) ) CHARACTER SET = utf8 COLLATE = utf8_general_ci ENGINE = InnoDB AUTO_INCREMENT = 8; -- ------------------------------------------------------------- -- --------------------------------------------------------- -- Dump data of "monthly_limits" --------------------------- -- --------------------------------------------------------- /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -- --------------------------------------------------------- -- CREATE TABLE "employers" -------------------------------- -- CREATE TABLE "employers" ------------------------------------ CREATE TABLE `employers` ( `id` Int( 255 ) AUTO_INCREMENT NOT NULL, `company_name` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `email` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `created_at` Timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP DEFAULT CURRENT_TIMESTAMP, `password` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, PRIMARY KEY ( `id` ) ) CHARACTER SET = utf8 COLLATE = utf8_general_ci ENGINE = InnoDB AUTO_INCREMENT = 7; -- ------------------------------------------------------------- -- --------------------------------------------------------- -- Dump data of "employers" -------------------------------- -- --------------------------------------------------------- /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -- --------------------------------------------------------- -- CREATE TABLE "jobs" ------------------------------------- -- CREATE TABLE "jobs" ----------------------------------------- CREATE TABLE `jobs` ( `id` Int( 255 ) AUTO_INCREMENT NOT NULL, `title` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `description` Text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `created_by` Int( 11 ) NOT NULL, `created_at` Timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP DEFAULT CURRENT_TIMESTAMP, `status_id` Int( 11 ) NOT NULL, PRIMARY KEY ( `id` ) ) CHARACTER SET = utf8 COLLATE = utf8_general_ci ENGINE = InnoDB AUTO_INCREMENT = 4; -- ------------------------------------------------------------- -- --------------------------------------------------------- -- Dump data of "jobs" ------------------------------------- -- --------------------------------------------------------- /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -- --------------------------------------------------------- -- CREATE TABLE "job_statuses" ----------------------------- -- CREATE TABLE "job_statuses" --------------------------------- CREATE TABLE `job_statuses` ( `id` Int( 255 ) AUTO_INCREMENT NOT NULL, `status` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, PRIMARY KEY ( `id` ) ) CHARACTER SET = utf8 COLLATE = utf8_general_ci ENGINE = InnoDB AUTO_INCREMENT = 3; -- ------------------------------------------------------------- -- --------------------------------------------------------- -- Dump data of "job_statuses" ----------------------------- INSERT INTO `job_statuses`(`id`,`status`) VALUES ( '1', 'publish' ); INSERT INTO `job_statuses`(`id`,`status`) VALUES ( '2', 'draft' ); -- --------------------------------------------------------- /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -- --------------------------------------------------------- -- CREATE TABLE "freelancer_ranks" ------------------------- -- CREATE TABLE "freelancer_ranks" ----------------------------- CREATE TABLE `freelancer_ranks` ( `id` Int( 255 ) AUTO_INCREMENT NOT NULL, `rank` VarChar( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `limit` Int( 255 ) NOT NULL, PRIMARY KEY ( `id` ) ) CHARACTER SET = utf8 COLLATE = utf8_general_ci ENGINE = InnoDB AUTO_INCREMENT = 3; -- ------------------------------------------------------------- -- --------------------------------------------------------- -- Dump data of "freelancer_ranks" ------------------------- INSERT INTO `freelancer_ranks`(`id`,`rank`,`limit`) VALUES ( '1', 'rank B', '20' ); INSERT INTO `freelancer_ranks`(`id`,`rank`,`limit`) VALUES ( '2', 'rank A', '40' ); -- --------------------------------------------------------- /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -- --------------------------------------------------------- -- CREATE TABLE "job_proposals" ---------------------------- -- CREATE TABLE "job_proposals" -------------------------------- CREATE TABLE `job_proposals` ( `id` Int( 255 ) AUTO_INCREMENT NOT NULL, `proposal` Text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `job_id` Int( 11 ) NOT NULL, `freelancer_id` Int( 255 ) NOT NULL, `created_at` Timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY ( `id` ) ) CHARACTER SET = utf8 COLLATE = utf8_general_ci ENGINE = InnoDB AUTO_INCREMENT = 15; -- ------------------------------------------------------------- -- --------------------------------------------------------- -- Dump data of "job_proposals" ---------------------------- -- --------------------------------------------------------- /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -- ---------------------------------------------------------