Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Forum {
- String title
- String details
- String active
- User user
- Date createdDate
- Date modifiedDate
- static hasMany = [ categories: ForumCategory ]
- static constraints = {
- }
- }
- class ForumCategory extends Forum {
- Attachment attachment
- static hasMany = [ topics : Topic ]
- static belongsTo = Forum
- static constraints = {
- }
- }
- class Topic extends ForumCategory {
- static hasMany = [threads: Thread]
- def belongsTo = ForumCategory
- static constraints = {
- }
- }
- class Thread extends Topic {
- static hasMany = [replies:Reply]
- def belongsTo = Topic
- static constraints = {
- }
- }
- class Reply extends Thread {
- def belongsTo = Thread
- static constraints = {
- }
- }
- --------
- class User {
- String username
- String firstName
- String lastName
- Date createdDate
- Date modifiedDate
- String active
- String emailAddress
- static hasMany = [ phoneNumbers: PhoneNumber ]
- String password
- String company
- String nickName
- String databaseEventUpdates
- String middlewareEventUpdates
- String applicationEventUpdates
- String partnerEventUpdates
- Avatar avatar
- static constraints = {
- }
- }
- class PhoneNumber {
- String type
- String phNumber
- static constraints = {
- }
- }
- class Avatar {
- String thumbURI
- String fullURI
- static constraints = {
- }
- }
- class Attachment {
- String filename
- String mimetype
- Date createdDate
- Date modifiedDate
- String active
- static constraints = {
- }
- }
Add Comment
Please, Sign In to add comment