moviesappbackend

command module
v0.0.0-...-7eb9a28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2017 License: MIT Imports: 8 Imported by: 0

README

MoviesAppBackend

MoviesAppBackend

Simple Movie Directory, Exposing REST API, using mysql database.

Table Structure:

CREATE TABLE movies (
    id int NOT NULL AUTO_INCREMENT,
    name varchar(255) NOT NULL,
    year int(4) NOT NULL,
    director varchar(255) NOT NULL,
    created timestamp default CURRENT_TIMESTAMP ,
    updated timestamp default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
    PRIMARY KEY (ID)
);
CREATE TABLE users (
    id int NOT NULL AUTO_INCREMENT,
    email varchar(255) NOT NULL,
    name varchar(255) NOT NULL,
    lastname varchar(255) NOT NULL,
    password varchar(255),
    role varchar(255),
    created timestamp default CURRENT_TIMESTAMP ,
    updated timestamp default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
    PRIMARY KEY (ID)
);

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL