Created
August 24, 2010 19:50
-
-
Save kumarshantanu/548180 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| (def blog-entry-meta | |
| (entity-meta :entry :autoid (from-row BlogEntry.) | |
| :cols [[:autoid :int "NOT NULL PRIMARY KEY AUTO_INCREMENT"] | |
| [:title "varchar(30)" "NOT NULL"] | |
| [:content "varchar(500)" "NOT NULL"] | |
| [:whenposted "DATETIME" "NOT NULL"] | |
| [:isdeleted "BOOLEAN" "NOT NULL DEFAULT false"]] )) | |
| (def entry-comment-meta | |
| (entity-meta :comment :autoid (from-row EntryComment.) | |
| :cols [[:autoid :int "NOT NULL PRIMARY KEY AUTO_INCREMENT"] | |
| [:entryid :int "NOT NULL"] | |
| [:content "varchar(500)" "NOT NULL"] | |
| [:name "varchar(50)" "NOT NULL"] | |
| [:email "varchar(50)" "NOT NULL"] | |
| [:url "varchar(100)"] | |
| [:whenposted "DATETIME" "NOT NULL"] | |
| [:isdeleted "BOOLEAN" "NOT NULL DEFAULT false"]] )) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment