DocType - achillesrasquinha/frappe-noob GitHub Wiki
frappe provides you DocTypes, an object to perform CRUD (Create, Read, Update and Delete) functionalities to your data. A DocType is an object which defines your data. Each DocType maps to a single table within your database with the name tab[DocType Name]
.
- Each DocType inherits from a parent Python class
frappe.model.document.Document
. - Each
Name
field corresponds to a database field. - You can also query directly into the database using our
frappe.db
instance.
To create a new DocType, head over to your desk and create a DocType as follows:
A DocType
is created within a Python module. On clicking Save
, head over to project folder and you'll see the following:
>>> doc = frappe.new_doc('Person')