Changeset 7734 for lang/perl/Chaostr

Show
Ignore:
Timestamp:
03/10/08 02:37:32 (5 years ago)
Author:
vkgtaro
Message:

lang/perl/Chaostr: テーブル定義してみた

Location:
lang/perl/Chaostr/trunk
Files:
6 added
1 modified
1 moved

Legend:

Unmodified
Added
Removed
  • lang/perl/Chaostr/trunk/db/scheme.sql

    r7662 r7734  
     1CREATE TABLE timeline ( 
     2    id         int UNSIGNED AUTO_INCREMENT PRIMARY KEY, 
     3    type       text NOT NULL, 
     4    created_by int UNSIGNED, 
     5    created_on DATETIME, 
     6    updated_on DATETIME 
     7)TYPE=InnoDB CHARACTER SET utf8; 
     8 
     9CREATE TABLE text ( 
     10    id    int UNSIGNED AUTO_INCREMENT PRIMARY KEY, 
     11    timeline_id int UNSIGNED, 
     12    title text, 
     13    text  mediumtext NOT NULL, 
     14    foreign key(timeline_id) references timeline(id) on delete cascade 
     15)TYPE=InnoDB CHARACTER SET utf8; 
     16 
     17CREATE TABLE photo ( 
     18    id      int UNSIGNED AUTO_INCREMENT PRIMARY KEY, 
     19    timeline_id int UNSIGNED, 
     20    photo   text, 
     21    caption mediumtext NOT NULL, 
     22    foreign key(timeline_id) references timeline(id) on delete cascade 
     23)TYPE=InnoDB CHARACTER SET utf8; 
     24 
     25CREATE TABLE quote ( 
     26    id     int UNSIGNED AUTO_INCREMENT PRIMARY KEY, 
     27    timeline_id int UNSIGNED, 
     28    quote  mediumtext, 
     29    source mediumtext, 
     30    foreign key(timeline_id) references timeline(id) on delete cascade 
     31)TYPE=InnoDB CHARACTER SET utf8; 
     32 
     33CREATE TABLE link ( 
     34    id   int UNSIGNED AUTO_INCREMENT PRIMARY KEY, 
     35    timeline_id int UNSIGNED, 
     36    name text, 
     37    url  text NOT NULL, 
     38    foreign key(timeline_id) references timeline(id) on delete cascade 
     39)TYPE=InnoDB CHARACTER SET utf8; 
     40 
     41CREATE TABLE video ( 
     42    id   int UNSIGNED AUTO_INCREMENT PRIMARY KEY, 
     43    timeline_id int UNSIGNED, 
     44    url  text NOT NULL, 
     45    text text, 
     46    foreign key(timeline_id) references timeline(id) on delete cascade 
     47)TYPE=InnoDB CHARACTER SET utf8; 
     48 
    149CREATE TABLE user ( 
    250    id           int UNSIGNED AUTO_INCREMENT PRIMARY KEY, 
  • lang/perl/Chaostr/trunk/lib/Chaostr/Web.pm

    r7685 r7734  
    6565=head1 DESCRIPTION 
    6666 
    67 [enter your description here] 
     67 
    6868 
    6969=head1 METHODS