Skip to content

Instantly share code, notes, and snippets.

@cirpo
Created August 3, 2010 15:44
Show Gist options
  • Select an option

  • Save cirpo/506582 to your computer and use it in GitHub Desktop.

Select an option

Save cirpo/506582 to your computer and use it in GitHub Desktop.
RoomForumThread:
tableName: room_forum_threads
actAs:
Timestampable:
Sluggable:
unique: true
fields: [title]
canUpdate: true
columns:
id:
type: integer(4)
primary: true
autoincrement: true
title:
type: string(255)
notnull: true
content:
type: string(2147483647)
notnull: true
room_id:
type: integer(4)
primary: true
user_id:
type: integer(4)
relations:
Room:
local: room_id
foreign: id
class: Room
onDelete: CASCADE
User:
local: user_id
foreign: id
class: sfGuardUser
onDelete: CASCADE
RoomForumMessage:
tableName: room_forum_messages
actAs:
Timestampable:
Sluggable:
unique: true
fields: [name]
canUpdate: true
columns:
id:
type: integer(4)
primary: true
autoincrement: true
content:
type: string(2147483647)
notnull: true
thread_id:
type: integer(4)
relations:
Thread:
local: thread_id
foreign: id
class: RoomForumThread
onDelete: CASCADE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment