Skip to content

Instantly share code, notes, and snippets.

@adilakhter
Created May 19, 2011 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adilakhter/981152 to your computer and use it in GitHub Desktop.
Save adilakhter/981152 to your computer and use it in GitHub Desktop.
Example
DatabaseSchema(
"example"
, [ Table(
"User"
, [ Column("id", UuidDBType())
, Column("name", StringDBType())
, Column("password", StringDBType())
, Reference("url", "URL")
]
)
, Table(
"URL"
, [Column("id", UuidDBType()), Column("url", StringDBType())]
)
]
)
Database example
Table User
id : uniqueidentifier
name : string
password : string
url -> URL
Table URL
id : uniqueidentifier
url : string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment