🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
25
node_modules/shiki/samples/tasl.sample
generated
vendored
Normal file
25
node_modules/shiki/samples/tasl.sample
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# This is a tasl schema!
|
||||
namespace s http://schema.org/
|
||||
|
||||
# classes are like tables, except they
|
||||
# can be arbitrary algebraic data types,
|
||||
# not just columns of primitives.
|
||||
class s:Person :: {
|
||||
s:name -> string
|
||||
s:email -> ? uri
|
||||
s:spouse -> ? * s:Person
|
||||
s:gender -> [
|
||||
s:Male
|
||||
s:Female
|
||||
s:value <- string
|
||||
]
|
||||
}
|
||||
|
||||
# references are a primitive type that
|
||||
# point to other classes in the schema,
|
||||
# just like foreign keys.
|
||||
class s:Book :: {
|
||||
s:name -> string
|
||||
s:isbn -> uri
|
||||
s:author -> * s:Person
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue