12.3 Model mapping

If you defined a model, for example, an article table:

(create-artanis-model
 article  ; model name
 (:deps user) ; deps list
 (id auto (#:primary-key))
 (author_id tinyint (#:not-null))
 (title char-field (#:not-null #:maxlen 128))
 (timestamp bigint (#:unsigned #:not-null))
 )

There will be a closure named $article in this module, and could be exported. The $ sign is auto added to the name of the table name. We call it model mapping so that you can control this table easily.