Module development - integrating custom content types
One way is to create an export of a CCK content type to use in the module. For an example of this method see How to create a CCK content type and fields from a module.

Another exported CCK example