Giter Club home page Giter Club logo

pair_boilerplate's People

Contributors

viames avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pair_boilerplate's Issues

routes.php not explained

As I understand (from parseCustomRoute fn) routes.php contains array of objects like this ? :
$this->routes = [
// object how ??? : path, action, module ?
];
Example is needed how to handle scripts in \pair_user\modules\tevent
for my module created in Developer for table t_event :
\pair_user\modules\tevent

Example is needed : What with t_eventtype, t_event_eventtype ?

CREATE TABLE t_eventtype(
id INT(10) NOT NULL,
name VARCHAR(255)
) ;

INSERT INTO t_eventtype (id, name) VALUES
(1, 'PHP')
,(2, 'HTML, CSS')
,(3, 'JS')
,(4, 'My events')
;

CREATE TABLE t_event (
id int(10) NOT NULL,
user_id INT(10) DEFAULT NULL,
title varchar(255) DEFAULT NULL,
summary varchar(4096) DEFAULT NULL,
estart varchar(25) DEFAULT '0000-00-00 00:00:00',
eend varchar(25) DEFAULT '0000-00-00 00:00:00',
elink text,
description1 text,
description2 text,
description3 text
) ;

CREATE TABLE t_event_eventtype (
event_id INT(10) NOT NULL,
eventtype_id INT(10) NOT NULL
) ;

ALTER TABLE t_eventtype ADD PRIMARY KEY (id);
ALTER TABLE t_eventtype MODIFY id int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

ALTER TABLE t_event ADD PRIMARY KEY (id);
ALTER TABLE t_event ADD KEY estart (estart);
ALTER TABLE t_event ADD FOREIGN KEY (user_id) REFERENCES users (id);
ALTER TABLE t_event MODIFY id int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

ALTER TABLE t_event_eventtype ADD PRIMARY KEY (event_id, eventtype_id);
ALTER TABLE t_event_eventtype ADD FOREIGN KEY (event_id) REFERENCES t_event (id);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.