add public methods and private methods when init schema.