This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE IF NOT EXISTS "videos" ("video_id" VARCHAR(255) , "name" VARCHAR(255), "published_at" VARCHAR(255), "thumbnail_url" VARCHAR(255), "channel_id" VARCHAR(255), "description" VARCHAR(255), "channel_name" VARCHAR(255), "created_date" TIMESTAMP WITH TIME ZONE, "search_doc_weights" tsvector, "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL, "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL, PRIMARY KEY ("video_id")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var logger = require('morgan'); | |
const mongoose = require('mongoose'); | |
const bodyParser = require('body-parser') | |
var usersRouter = require('./routes/users.routes'); | |
var adminRouter = require('./routes/admin.routes'); | |
var app = express(); |