PHP Classes

File: exemples/php-activerecord/examples/orders/orders.sql

Recommend this page to a friend!
  Classes of Wesley David   wdForm   exemples/php-activerecord/examples/orders/orders.sql   Download  
File: exemples/php-activerecord/examples/orders/orders.sql
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: wdForm
Generate and process HTML forms
Author: By
Last change: Update of exemples/php-activerecord/examples/orders/orders.sql
Date: 4 months ago
Size: 651 bytes
 

Contents

Class file image Download
-- written for mysql, not tested with any other db drop table if exists people; create table people( id int not null primary key auto_increment, name varchar(50), state char(2), created_at datetime, updated_at datetime ); drop table if exists orders; create table orders( id int not null primary key auto_increment, person_id int not null, item_name varchar(50), price decimal(10,2), tax decimal(10,2), created_at datetime ); drop table if exists payments; create table payments( id int not null primary key auto_increment, order_id int not null, person_id int not null, amount decimal(10,2), created_at datetime );